Is there any suitable Algorithm for Integration & Differentiation which I could implement by C++ or C. Just name it with reference. I would be very happy with your answer & explanation if you kind enough to provide a sample code. Thanks in advance.
Asked
Active
Viewed 6,124 times
2
-
1Numerical or symbolic integration/differentiation? – Anders Forsgren May 19 '13 at 19:25
-
"Is there any suitable Algorithm for Integration & Differentiation which I could implement by C++ or C" - if there wasn't, applications like Matlab couldn't have been written. "Just name it with reference": `trapezoidal rule &` (or `const trapezoidal rule &`, if you want a read-only solution). – May 19 '13 at 19:26
-
Numarical integration/differentiation @AndersForsgren – Maruf May 19 '13 at 19:33
-
Thank You very much ......... You save a lot of time.... :) @H2CO3 – Maruf May 19 '13 at 19:35
-
This has the answer to half your question: http://stackoverflow.com/questions/1559695/implementing-the-derivative-in-c-c – Wolfgang Skyler May 19 '13 at 19:37
1 Answers
2
You can use Calculus c++ library.
It is easy to use. You can declare variables as Variable x="x",y="y";
, and functions as Function f=sin(x)*sin(y);
.
And you can differentiate it for example with respect to x as
Function dfdx= f->get_partial_derivative(x);