eu
Syntax
eu(expression, variable, varInitial, yInitial, varFinal, stepSize)
Description
Uses Euler's method to approximate the value of y (the dependent variable) when variable (the independent
variable) is equal to varFinal for the differential equation
and (varInitial, yInitial) is a point on the solution curve i.e. y = yInitial when variable = varInitial. There is a built in Euler function on the TI-Nspire however it cannot be made to work in exact mode.
and (varInitial, yInitial) is a point on the solution curve i.e. y = yInitial when variable = varInitial. There is a built in Euler function on the TI-Nspire however it cannot be made to work in exact mode.
Parameters
expression
An expression.
variable
The independent variable.
varInitial, yInitial
Together these parameters define a point that is on the solution curve
of the differential equation. This is where Euler's method starts from.
varFinal
The value of the independent variable whose corresponding y value is
to be found.
stepSize
The distance to go along the independent variable axis in one step of Euler's
method. Only the magnitude of stepSize matters. The direction to go is determined
by whether varFinal is greater than or smaller than varInitial.
Return Value
An error is returned if varFinal - varInitial is not a multiple
of stepSize. Otherwise a matrix that shows the approximate y value for each
step including the y value corresponding to varFinal is returned.