choreo.segm.quad.EvalOnNodes#
- EvalOnNodes(fun, Py_ssize_t ndim, (double, double) x_span, QuadTable quad) ndarray #
Evaluates a function on quadrature nodes of an interval.
- Parameters:
fun (
callable
orscipy.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)