Thomas Bechtold a écrit :
Hi,

im searching for a math expression evaluator (something like eval() in
python) to evaluate strings as math expressions.

I found muparser [1] and libmatheval [2]. Do you know any other lib
usable with C?

        Sure. librpl from RPL/2 (http://www.rpl2.net)

Example :

char expr[] = "MAIN << 3 -> X 'X+1' >>";
char **results;

results = rpl(expr, NULL);
printf("%s\n", results[0]);

        librpl is more than an evaluation routine.

        Regards,

        JKB

_______________________________________________
Help-gsl mailing list
Help-gsl@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to