Quadsimp

Parent Previous Next

Quadsimp


Simpson quadrature (same as Quad)


Syntax


Quadsimp(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)

quadsimp(f, 0, PI)


See Also


Created with the Personal Edition of HelpNDoc: Free HTML Help documentation generator