|  | RobWorkProject
    23.9.11-
    | 
Implementation of the trapezoidal rule for integration. More...
#include <TrapMethod.hpp>
| Static Public Member Functions | |
| template<class T > | |
| static double | trapezMethod (T &func, const int M, const double h) | 
| routine for calculating a definite integral using the trapezoidal rule  More... | |
Implementation of the trapezoidal rule for integration.
| 
 | inlinestatic | 
routine for calculating a definite integral using the trapezoidal rule
| func | the integrand as a function object | 
| M | the limit in the integration | 
| h | the stepsize |