148
Chapter 8
Programming
_
Do
:
~ LpWhile <expression>
^
_
While <expression>
:
~ WhileEnd
^
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
Summary of Contents for fx-7400G PLUS
Page 7: ... fx 7400G PLUS ...
Page 14: ...xii Contents ...
Page 57: ...Differential Calculations Chapter 3 ...
Page 176: ...162 Chapter 8 Programming ...
Page 188: ...Chapter 9 Data Communications 174 ...
Page 199: ...185 1 2 3 4 5 Program for Circle and Tangents No 4 Step Key Operation Display ...
Page 200: ...186 Program for Circle and Tangents No 4 Step Key Operation Display 6 7 8 9 10 ...
Page 201: ...187 11 12 13 14 15 Program for Circle and Tangents No 4 Step Key Operation Display ...
Page 202: ...188 16 17 18 Program for Circle and Tangents No 4 Step Key Operation Display ...
Page 205: ...191 1 2 3 4 5 Program for Rotating a Figure No 5 Step Key Operation Display ...