HyperMath

Integral

Integral

Previous topic Next topic No expanding text in this topic  

Integral

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

The integral by trapezoidal method.

Syntax

I = Integral(x,y)

Argument

Name

Description

 

x

A vector of the independent variable values.

 

y

A vector of the dependent variable values at the independent variable values. Must be of same length as x.

Output

Name

Description

 

I

The integral up to at each point of x.

Example

Find the integral up to each point of x:

 

Syntax

 

x = [1:5]

y = Exp(x)

I = Integral(x,y)

 

Result

 

I = 0  5.0537  18.791  56.133  157.64

Comments

The algorithm uses the trapezoidal method.  The argument values must be real.

See Also:

Derivative