Quad

Parent Previous Next

Quad


General quadrature (same as Quadsimp)


Syntax


Quad(f, a, b)

f is a user defined function with single independent variable

a, b are scalars

Return a scalar which the the result of integrating function f over [a,b]


Example


Input

Output

f(x) => sin(x)

quad(f, 0, PI)


See Also


Created with the Personal Edition of HelpNDoc: Easily create Help documents