HyperMath

Derivative

Derivative

Previous topic Next topic No expanding text in this topic  

Derivative

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

The derivative by finite difference.

Syntax

d = Derivative(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

 

d

The derivative at each point of x.

Example

Find the derivatives at each point of x:

 

Syntax

 

x = [1:5]

y = Exp(x)

d = Derivative(x,y)

 

Result

 

d = 4.6708  8.6836  23.605  64.164  93.815

Comments

The algorithm uses central differencing for inner points and uses forward and backward differencing for the end points.  The argument values must be real.