trick/trick_source/trick_utils/SAIntegrator/examples/DefiniteIntegral
2021-02-25 22:58:39 -06:00
..
images Add DefiniteIntegral example for Tutorial. #1097 2021-01-27 12:30:36 -06:00
.gitignore SAIntegrator: Add gitignore files. 2021-02-25 22:58:39 -06:00
DefiniteIntegral.cpp Add DefiniteIntegral example for Tutorial. #1097 2021-01-27 12:30:36 -06:00
makefile Add DefiniteIntegral example for Tutorial. #1097 2021-01-27 12:30:36 -06:00
plot_trajectory.py Add DefiniteIntegral example for Tutorial. #1097 2021-01-27 12:30:36 -06:00
README.md Add DefiniteIntegral example for Tutorial. #1097 2021-01-27 12:30:36 -06:00

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

It's specifically parameterized to compute :

Equation

The correct answer is 14+2/3.

$ make
$ ./DefiniteIntegral
Integral = 14.6667.