choreo.segm.quad.EvalOnNodes#
- EvalOnNodes()#
Evaluates a function on quadrature nodes of an interval.
- Parameters:
fun (
callableorscipy.LowLevelCallable) – Function to be evaluated.ndim (
int) – Number of output dimensions of the integrand.x_span (
tuple(numpy.float64,numpy.float64)) – Lower and upper bound of the evaluation interval.quad (
QuadTable) – Normalized evaluation nodes.
- Returns:
The approximated value of the integral.
- Return type:
numpy.ndarray(shape = (ndim), dtype = np.float64)