<< Numerical Integration Techniques (integtools) Numerical Integration Techniques (integtools) simpson2 >>

Numerical Integration Techniques (integtools) >> Numerical Integration Techniques (integtools) > simpson

simpson

evaluates the definite integral using Simpson's 1/3rd Method

Calling Sequence

integral = simpson(a,b,n,f)

Parameters

a:

lower limit of integration

b:

upper limit of integration

n:

an even no. (denotes the no. of sub-intervals. Higher the value of n better the result.)

f:

The function that is to be integrated

Description

returns the definite integral using Simpson's 1/3rd Method

Examples

deff('a=f(x)','a=x*x') // define a function f which returns x^2
integral = simpson(0,2,600,f) // evaluates the integral of x^2 from 0 to 2

See also

Authors

Bibliography

http://www.phy.davidson.edu/FacHome/dmb/py200/Simpson.htm

http://www.bragitoff.com/2016/02/simpsons-13rd-rule-integration-scilab-codeprogrammacro/


Report an issue
<< Numerical Integration Techniques (integtools) Numerical Integration Techniques (integtools) simpson2 >>