integrate¶
Module for performing integration of scalars (Scalar()
).
Main function is integrate()
which takes a scalar and the variables to integrate over.
-
qualg.integrate.
integrate
(scalar, variable=None)¶ Integrates a scalar over a given variable or variables.
- Parameters
scalar (
Scalar
) – The scalar to integrate.variable (None or str or set of str) – The variable(s) to integrate over. Can be: * None: Then all variables in the scalar are integrated out. * str: Then a single variable is integrated out. * set of str: Then all the variables in the set are integrated out.
- Returns
The output of the integration.
- Return type
Scalar