Student[NumericalAnalysis]
Taylor
numerically approximate the solution to a first order initial-value problem with the Taylor Method
Calling Sequence
Parameters
Options
Description
Notes
Examples
Taylor(ODE, IC, t=b, opts)
Taylor(ODE, IC, b, opts)
ODE
-
equation; first order ordinary differential equation of the form ⅆⅆty⁡t=f⁡t,y
IC
equation; initial condition of the form y(a)=c, where a is the left endpoint of the initial-value problem
t
name; the independent variable
b
algebraic; the point for which to solve; the right endpoint of this initial-value problem
opts
(optional) equations of the form keyword=value, where keyword is one of numsteps, output, comparewith, digits, order, or plotoptions; options for numerically solving the initial-value problem
comparewith = [list]
A list of method-submethod pairs; the method specified in the method option will be compared graphically with these methods. This option may only be used if output is set to either plot or information.
It must be of the form
comparewith = [[method_1, submethod_1], [method_2, submethod_2]]
If either method lacks applicable submethods, the corresponding submethod_n entry should be omitted.
Lists of all supported methods and their submethods are found in the InitialValueProblem help page, under the descriptions for the method and submethod options, respectively.
digits = posint
The number of digits to which the returned values will be rounded (using evalf). The default value is 4.
numsteps = posint
The number of steps used for the chosen numerical method. This option determines the static step size for each iteration in the algorithm. The default value is 5.
order = posint
The order of the Taylor polynomial used. The default value is 3.
output = solution, Error, plot, information
Controls what information is returned by this procedure. The default value is solution:
output = solution returns the computed value of y⁡t at t = b;
output = Error returns the absolute error of y⁡t at t = b;
output = plot returns a plot of the approximate (Taylor) solution and the solution from one of Maple's best numeric DE solvers; and
output = information returns an array of the values of t, Maple's numeric solution, the approximations of y⁡t as computed using this method and the absolute error between these at each iteration.
plotoptions = list
The plot options. This option is used only when output = plot is specified.
Given an initial-value problem consisting of an ordinary differential equation ODE, a range a <= t <= b, and an initial condition y(a) = c, the Taylor command computes an approximate value of y(b) by expanding y(t) into a Taylor polynomial at each step along the interval.
If the second calling sequence is used, the independent variable t will be inferred from ODE.
The endpoints a and b must be expressions that can be evaluated to floating-point numbers. The initial condition IC must be of the form y(a)=c, where c can be evaluated to a floating-point number.
The Taylor command is a shortcut for calling the InitialValueProblem command with the method = taylor option.
To approximate the solution to an initial-value problem using a method other than the Taylor Method, see InitialValueProblem.
with⁡StudentNumericalAnalysis:
Taylor⁡diff⁡y⁡t,t=cos⁡t,y⁡0=0.5,t=3
0.6235
Taylor⁡diff⁡y⁡t,t=y⁡t+t2,y⁡1=3.10,t=4,order=5,output=Error
0.03161
Taylor⁡diff⁡y⁡t,t=cos⁡t,y⁡0=0.5,t=3,output=plot
See Also
Student[NumericalAnalysis][InitialValueProblem]
Student[NumericalAnalysis][VisualizationOverview]
Download Help Document