May 16, 2013 at 8:55am
Hi I'm a beginner in C++. I'm looking out to read a polynomial expression and do differentiation to the same expression. Is it possible doing it.
For Example: let f=x^2+2*x+1 be expression to be read.
Please help me out in doing this.
May 16, 2013 at 9:42am
read it in as a string
http://www.cplusplus.com/forum/beginner/397/
then you'll have to do some parsing on that string.
or ask the user to input coefficient of the first term (the x^2), coefficient of the second term (x) and the third time.
something like that.
Last edited on May 16, 2013 at 9:42am
May 16, 2013 at 10:20am
Thank you for shedding light on my problem.
Thank you a lot!!!!!