Letting users type their own formulas into your program
You have an application where users need to enter something like 5*x+2^x and get an answer, and you'd rather not write a parsing engine from scratch. uCalc Fast Math Parser is a component that lets your program evaluate math expressions that are defined at runtime.
Quick facts
- Version: 5.04
- Platforms: Windows 32-bit/64-bit, Linux, macOS, iOS
- Package: about 2 MB download
Key features
Evaluate expressions that only exist at run time
Your program can take a formula as text while it is running and compute the result. The design centers on ease of implementation, flexibility, sturdiness and speed.
Works with the compilers you probably already use
Earlier versions documented support for C++ Builder, C#, Delphi, PowerBASIC, Visual Basic (classic), Visual Basic .NET and Visual C++.
Math and string expressions, plus your own functions
The parser handles conventional math operators and functions, user variables and functions, and strings. It is suited to heavy number crunching.
A fast path for loops
Older releases pair a simple one-step evaluate call with a faster call meant for loops that repeat the same expression with different values.
Who it's for
It suits developers building calculators, game tools, engineering or scientific software, or anything where end users supply formulas.
Pros and cons
- Pro: supports many languages and compilers.
- Pro: small download.
- Con: it is a developer component, not a standalone calculator.
- Con: the vendor's documentation noted that an older 64-bit DLL was provisional, slower than the 32-bit version and heavier on memory.
FAQs
Is it a standalone program?
No. It is a component you build into your own application.
Can it work with text as well as numbers?
Yes. It evaluates both math and string expressions.
Which languages does it support?
Documentation covers C++ Builder, C#, Delphi, PowerBASIC, Visual Basic and Visual C++, among others.