I am looking for a flexible, but also significantly quicker way to easily convert values ββand calculations based on descriptive strings of a calculator.
For example, something like this:
double r = 1.0; double d = mathf( "sin(%1)+2*%2", r, M_PI ); double e = mathf( "%1 / 180.0 * %2", r, M_PI );
It is important to think that math operations can be evaluated at runtime and loaded from the configuration file. I even considered some integration of the scripting language, but it seems that it is not so smooth and fast?
Any ideas if there is something like mathf for C ++?
source share