Programming
568
Note:
A list of output commands is available.
Getting Values into a Program
To input values into a program, you can:
•
Require the users to store a value (with
§
) to the necessary variables before
running the program. The program can then refer to these variables.
Note:
A list of input commands is available.
Displaying a calculation result
does not store that result. If you
need to refer to a result later,
store it to a variable.
:cos(
p
/4)
!
maximum
:Disp maximum
•
Enter the values directly into
the program itself.
:Disp 12
ù
6
:cos(
p
/4)
!
maximum
•
Include input commands that
prompt the users to enter the
necessary values when they
run the program.
:Input "Enter a value",i
:Request "Enter an
integer",n
•
Require the users to pass
one or more values to the
program when they run it.
prog1(3,5)
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 ...