C question

Associate
Joined
30 Sep 2004
Posts
1,038
Location
Colchester, Essex
If I have a mathematical function saved in a string, like:
Code:
(x+3)^3+x+24x-3+x^(3+24x)+sin(x)
would it be possible to convert it into something useable by C (math.h functions) such as:
Code:
pow(x+3,3)+x+24*x-3+pow(x,3+24x)+sin(x)
if it is, could someone please point me in the right direction

Thanks
 
Back
Top Bottom