Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Differentiation

Status
Not open for further replies.

skwrox

Programmer
Oct 9, 2001
4
US
Hi all,

I need to get the derivative of any expression that the user inputs to my program.

Is there any function of any class in the STL that can do this? Or could someone put me on to the right path with some hints on algorithm for this?

Thanks in advance,
S


 
How far do you want to go?
Are the equations going to be in a fixed format with regard to whitespace, operators etc or do they all have to be coped with.
eg 2X3, 2*X^3
Simple polynomials can be done fairly easily with string manipulation but if you want want trigonometric, log functions etc thats a bit more tricky.
Do you just need a string out or do you need to actually do the maths
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top