Programming
569
Example of Passing Values to a Program
The following program draws a circle on the Graph screen and then draws a horizontal
line across the top of the circle. Three values must be passed to the program: x and y
coordinates for the circle’s center and the radius r.
•
When you write the program in the Program Editor:
Note:
In this example, you cannot use circle as the program name because it
conflicts with a command name.
Before drawing the circle, the program turns off any selected Y= Editor functions,
displays a standard viewing window, and “squares” the window.
In the ( ) beside the program name,
specify the variables that will be
used to store the passed values.
Notice that the program also
contains commands that set up the
Graph screen.
:circ(x,y,r)
Ê
:
Prgm
:FnOff
:ZoomStd
:ZoomSqr
:Circle x,y,r
:LineHorz y+r
:EndPrgm
Ê
Only
circ( )
is initially
displayed on the blank
template; be sure to edit this
line.
Summary of Contents for Titanium TI-89
Page 9: ...Getting Started 6 TI 89 Titanium keys Ë Ì Í Ê ...
Page 34: ...Getting Started 31 2 or D 2 B u s i n e s s D B D B Press Result ...
Page 43: ...Getting Started 40 3 0 D B D D B D Press Result ...
Page 44: ...Getting Started 41 D 2 0 0 2 D B Scroll down to October and press Press Result ...
Page 58: ...Getting Started 55 Example Set split screen mode to TOP BOTTOM Press Result 3 B D ...
Page 70: ...Getting Started 67 ...
Page 175: ...Operating the Calculator 172 From the Keyboard ...
Page 456: ...Tables 453 ...
Page 527: ...Data Matrix Editor 524 ...