Hello
I am trying to implement differentiation in C++. I have no clue on how to do it. Could anybody suggest an algorithm or a refernce on where I could find something on this topic.
Hello
I am trying to implement differentiation in C++. I have no clue on how to do it. Could anybody suggest an algorithm or a refernce on where I could find something on this topic.
First, you need to be a little more clear about what kind of differentiation. Do you want (a) numerical methods for computing the derivative of a function? Do you want (b) symbolic differentiation of a symbolic expression. If the latter, do you want that to happen at run-time or do you want a (c) template based solution that makes it happen at compile time.
Depending on what you want, google for
(a) numeric differentiation.
(b) symbolic differentiation.
(c) expression templates differentiation.
Settle on a method and try putting it into code. When problems arise, come back here with what you have and someone will be happy to help you straightening out your code.
Bookmarks