integral#
- swordfish.function.integral()#
Return the integral of func from start to end.
If the result is infinity or if the calculation involves complex numbers, the result is NULL.
- Parameters:
func (Constant) – A unary function.
start (Constant) – A numeric scalar/vector indicating start value. Null means negative infinity.
end (Constant) – A numeric scalar/vector indicating end value. Null means positive infinity.
start2 (Constant) – A numeric scalar/vector/unary function indicating the start value of the second dimension in double integral. Null means negative infinity.
end2 (Constant) –
A numeric scalar/vector/unary function indicating the end value of the second dimension in double integral. Null means positive infinity.
If both start and end are vectors, they must be of the same length.
If one of start and end is a scalar and the other is a vector, the scalar is treated as a vector of idential values.