evaluting expression

I am looking for a public available library with source code which can parse and evaluate user's expression. It should be able to define variables and use functions from <math.h>. Please point me to a web site or send me a source code.

Who is Participating?
basantConnect With a Mentor Commented:
I had asked the same question once.
The site u can refer is :

See the file eval.c ( search for eval.c in this html page)

This file contains the code to
evaluation the expression of
something like this :
 3.4 * 5.3 + sin(4.3) - exp(4.5)

This does n't accept input variables.
I had written parsing program for expression which takes input too.
If u want I can give the source code
to you.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.