Reference Guide

RPL Programming Examples 2-31
Animation of Successive Taylor’s Polynomials
This section contains three programs that manipulate graphics objects to display a sequence of Taylor’s polynomials
for the sine function.
SINTP draws a sine curve, and saves the plot in a variable.
SETTS superimposes plots of successive Taylor’s polynomials on the sine curve plot from SINTP, and saves the
resulting graphics objects in a list.
TSA uses the ANIMATE command to display in succession each graphics object from the list built in SETTS.
SINTP (Converting a Plot to a Graphics Object)
SINTP draws a sine curve, returns the plot to the stack as a graphics object, and stores that graphics object in a
variable. Make sure your calculator is in Radians mode.
Techniques used in SINTP
Programmatic use of PLOT commands. SINTP uses PLOT commands to build and display a graphics object.
SINTP program listing
Program: Comments:
«
'SIN(X)' STEQ
Stores the expression for
sin x in EQ.
FUNCTION '-2' NUM
DUP NEG XRNG
-2 2 YRNG
Sets the plot type and x-
and y-axis display ranges.
ERASE DRAW
Erases PICT, then plots the
expression.
PICT RCL 'SINT' STO
Recalls the resultant
graphics object and stores it
in SINT.
»
`
O SINTP K
Stores the program in
SINTP.
Checksum: # 41184d
Bytes: 94
SINTP is demonstrated in the program TSA.