RPL Programming Examples 2-31
! 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:
"!
+D6=-T/+!D:<U!
Stores the expression for sin
x in EQ.
75=O:6L=!+0H.i+!#=5M!
452!=<>!TK=>!
0H!H!PK=>!
Sets the plot type and x- and
-axis display ranges.
<KBD<!4KBY!
Erases PICT, then plots the
expression.
26O:!KOE!+D6=:+!D:L!
Recalls the resultant graphics
object and stores it in SINT.
1!
`O SINTP K
Stores the program in
SINTP.
Checksum: # 41184d
Bytes: 94
SINTP is demonstrated in the program TSA.