139
Programming
Chapter 8
Description:
1. This command is basically identical to For~To~Next. The only difference is that
you can specify the step.
2. Omitting the step value automatically sets the step to 1.
3. Making the starting value less than the ending value and specifying a positive
step value causes the control variable to be incremented with each execution.
Making the starting value greater than the ending value and specifying a negative
step value causes the control variable to be decremented with each execution.
Example:
For 1
"
A To 10 Step 0.1
_
A
!
3
"
B
_
B
^
Next
Do~LpWhile
Function:
This command repeats specific commands as long as its condition is true
(non-zero).
Syntax:
Parameters:
expression
Description:
1. This command repeats the commands contained in the loop as long as its condi-
tion is true (non-zero). When the condition becomes false (0), execution pro-
ceeds from the statement following the LpWhile-statement.
2. Since the condition comes after the LpWhile-statement, the condition is tested
(checked) after all of the commands inside the loop are executed.
Example:
Do
_
?
"
A
_
A
!
2
"
B
_
B
^
LpWhile B >10
While~WhileEnd
Function:
This command repeats specific commands as long as its condition is true
(non-zero).
Syntax:
Parameters:
expression
_
Do
:
~ LpWhile <expression>
^
_
While <expression>
:
~ WhileEnd
^
Содержание fx-7400G
Страница 46: ...Differential Calculations Chapter 3 ...
Страница 164: ...161 1 2 3 4 5 Program for Circle and Tangents No 4 Step Key Operation Display ...
Страница 165: ...162 Program for Circle and Tangents No 4 Step Key Operation Display 6 7 8 9 10 ...
Страница 166: ...163 11 12 13 14 15 Program for Circle and Tangents No 4 Step Key Operation Display ...
Страница 167: ...164 16 17 18 Program for Circle and Tangents No 4 Step Key Operation Display ...
Страница 170: ...167 1 2 3 4 5 Program for Rotating a Figure No 5 Step Key Operation Display ...