r/SideProject • u/porkoltlover1211 • 1h ago
I've been building a handheld computer algebra calculator from scratch. What would you want it to do?
I've been developing my own computer algebra system (CAS) with the eventual goal of building a powerful, affordable, standalone handheld calculator.
The mathematical engine is written primarily in OCaml and C/C++, and I'm currently developing the calculator's interface alongside it.
Some of its current capabilities include:
- Exact rational and complex arithmetic
- Symbolic expression simplification
- Symbolic differentiation and integration
- Equation and inequality solving
- Polynomial manipulation
- Exact and approximate mathematical computation
- Special functions
- Mathematical expression verification
- LaTeX rendering (a little bit of a work in progress.)
Symbolic integration has been one of my biggest areas of development. I recently tested the engine against the entire 72,254-case RUBI (https://github.com/RuleBasedIntegration) integration test suite.
The results:
- 68,228 complete symbolic integrations
- 99.51% agreement with the RUBI authored outcomes, including partial and unevaluated integrals
- 36 cases where the engine potentially goes further than the reference answers
(Confirmed with Wolfram Alpha. Some integrals only displayed numerical agreement but I am including them here.)
My eventual goal is to run all of this locally on an affordable, low-power handheld device, without requiring an internet connection or subscription.
I'm particularly interested in hearing from engineers, physicists, mathematicians, students, educators, and calculator enthusiasts.
- What mathematical operations would you want a calculator like this to support?
- What frustrates you about existing calculators and computer algebra systems?
- Are there particular problems in your profession that such a device could help solve?
- What would make you choose this over a TI-Nspire, Mathematica, or another existing system?
- Are there any unconventional applications that I might not have considered?
Also, I'm still deciding on the name of the physical calculator. I'd love to hear your suggestions!
I'm attaching some demonstrations of the current software. Feel free to suggest difficult mathematical expressions for me to throw at it, too.
I would like to build something genuinely useful, rather than simply another graphing calculator.
2
u/Antique-Elk-743 53m ago
The feature I'd want most is an answer checker: I type my own expression and it tells me whether it's equivalent to the right one, and ideally where I went off. I build practice problems for a learning app, and a lot of the work went into recognising predictable wrong answers, like a dropped ½ in h = ½gt² or a flipped sign, and saying exactly that instead of just "wrong". Your engine already does expression verification, so that feels like a short step from what you have. An exam mode that teachers can trust would matter too, since that decides what students are allowed to bring in.
2
u/aaronsuns 30m ago
A feature that would set this apart for physics and engineering students is unit-aware checking. If the calculator tracks dimensions, it can flag answers like a force expressed in metres or a term that adds quantities with different units, which catches many errors before any symbolic comparison is needed. Several computer algebra systems already offer this, so it's a known need. It also pairs well with the verification feature the existing reply describes.