Saw this thread today: http://www.daniweb.com/software-development/csharp/threads/448676/derivative-integrals
You may download the (free) source code from here http://xrjunque.nom.es/precis/swdownload.aspx
Need to say it's all vb.net, but you can easily have a .dll (all the 'machinery' is inside a folder: just complile as a .Net's .dll).

Then, to derivate say 'cos(x)':
dim strToDerivate as string = "Dx(cos(x))"
dim m8 as matrixParser = Mates8.matrixParser.parse(strToDerivate, "", Nothing)
Label1.text = Mates8.m8.ret.toStringRetVal ' retrive & show the result:

For integration:
dim strToIntegrate as string = "∫(cos(x))dx" ' also "integral(cos(x))dx" does work
m8 = Mates8.matrixParser.parse(strToIntegrate, "", Nothing)
Label2.text = m8.ret.toStringRetVal

5 Years
Discussion Span
Last Post by Ancient Dragon

If you're answering a post in a specific thread you should really post your answer( a link here is ok) in that thread.

If you just want to share code, first you should make your post a code snippet, then post the relevant source code(the actual code, not just a link) and any explanations.

Edited by tinstaafl

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.