endf.Tabulated1D.integrate#
- Tabulated1D.integrate(a, b, clip_bounds=True)[source]#
Performs a definite integral over a portion of the function.
Performs the definite integral over the range [a,b] for the tabulated function. If clip_bounds is True (default), then the integration bounds will be truncated to be within the tabulated domain. This is equivalent to the function being zero outside the tabulation. If clip_bounds is False, then a ValueError is raised if a or b are outside the domain.
- Parameters:
a (float) – Lower bound of integration.
b (float) – Upper bound of integration.
clip_bounds (bool, default True) – If True, the integration bounds are clipped to cover the tabulated domain of the function. If False, a ValueError will be raised if either integration bound is outside the tabulated domain.
- Return type:
- Returns:
float – Value of the definite integral.
- Raises:
ValueError – If clip_bounds is False and either of the integration bounds a or b are outside the domain of the tabulated function.