Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   How can an application execute a mathematical formula edited in an Edit (http://www.go4expert.com/forums/application-execute-mathematical-t27945/)

nunca 4Mar2012 01:36

How can an application execute a mathematical formula edited in an Edit
 
I am so tired about this problem. Please can someone help me.
In my application I need perform a procedure which can read a mathematical formula form an Edit and execute it. The problem is how can I convert this string to a real function
Thank you

Alan_Smith 5Mar2012 16:27

Re: How can an application execute a mathematical formula edited in an Edit
 
It is necessary to add #include<math.h > into C++ program to use any mathematical function. The string uses only characters so first create function and give function name, and then use any data type related to math as integer or float. If require convert string into integer and float. Thus, it is possible to create mathematical formula with function and edit it.

xpi0t0s 5Mar2012 18:07

Re: How can an application execute a mathematical formula edited in an Edit
 
Can you give an example of the kind of input you want to give, and what output you would expect?


All times are GMT +5.5. The time now is 21:48.