To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

integration.hpp 261 Bytes
Newer Older
Erick Turricelli's avatar
Erick Turricelli committed
1
2


3
double integration(const double a, const double b, const int N, const double (*my_func)(double x));
Erick Turricelli's avatar
Erick Turricelli committed
4
5
6
7
8
9
10
11
12
13

// Pre-conditions
/*
- N must be a positive integer
- b >= a

Post-conditions
- The result is the integral of the specified function in the interval [a,b]

*/