Texas Instruments TI-89 사용자 설명서
![Texas Instruments](https://files.manualsbrain.com/attachments/b46f99d826b2b0e0e5f558c5fb6483942eb9216b/common/fit/150/50/c15ea36eb1fb1cce99a3b94668675bfc78ce832d8d727d9a7bb51a125510/brand_logo.gif)
Programming
582
•
Control structures such as
If...EndIf
commands use a conditional test to decide
which part of a program to execute.
•
Loops commands such as
For...EndFor
repeat a group of commands.
Using Indentation
Using Indentation
Using Indentation
Using Indentation
Displaying Calculated Results
Displaying Calculated Results
Displaying Calculated Results
Displaying Calculated Results
In a program, calculated results are not displayed unless you use an output command.
This is an important difference between performing a calculation on the Home screen
and in a program.
This is an important difference between performing a calculation on the Home screen
and in a program.
For more complex programs that
use
use
If...EndIf
and loop structures
such as
For...EndFor
, you can make
the programs easier to read and
understand by using indentation.
understand by using indentation.
:If x>5 Then
: Disp "x is > 5"
:Else
: Disp "x is < or = 5"
:EndIf
These calculations will not
display a result in a program
(although they will on the Home
screen).
display a result in a program
(although they will on the Home
screen).
:12
ù
6
:cos(
p
/4)
:solve(x^2–x–2=0,x)
Output commands such as
Disp
will display a result in a program.
:Disp 12
ù
6
:Disp cos(
p
/4)
:Disp solve(x^2–x–2=0,x)