Compute the positive and negative areas of a function.
integrate_funct_1d integrates the function Function (see create_funct_1d_array and create_funct_1d_pairs) and returns the integral of the positive and negative parts of the function in Positive and Negative, respectively. Hence, the integral of the function is the difference Positive - Negative. The integration is done on the interval on which the function is defined. For the integration, the function is interpolated linearly.
|
Function (input_control) |
function_1d-array -> real |
| Input function. | |
|
Positive (output_control) |
number -> real |
| Area under the positive part of the function. | |
|
Negative (output_control) |
number-array -> real |
| Area under the negative part of the function. | |
integrate_funct_1d is reentrant and processed without parallelization.
create_funct_1d_pairs, create_funct_1d_array
create_funct_1d_array, create_funct_1d_pairs
Tools