DefiniteIntegral
This is a code example of using SAIntegrator to compute a definite integral.
This program will use the SA::RK4Integrator compute an integral of the form :
![Equation](/ExternalVendorCode/trick/media/commit/f87c432bd43cc4dbbba0b0fe352028e2594cd7ef/trick_source/trick_utils/SAIntegrator/examples/DefiniteIntegral/images/Eq1.png)
It's specifically parameterized to compute :
![Equation](/ExternalVendorCode/trick/media/commit/f87c432bd43cc4dbbba0b0fe352028e2594cd7ef/trick_source/trick_utils/SAIntegrator/examples/DefiniteIntegral/images/Eq2.png)
The correct answer is 14+2/3.
$ make
$ ./DefiniteIntegral
Integral = 14.6667.