E-28
⇒
Each program needs an
END
command to mark the end of the
program. This is displayed automatically when you create a new
program.
Increment and decrement
Post-fixed: Memory va + or Memory variable – –
Pre-fixed: +
+ Memory variable or – – Memory variable
⇒
A memory variable is decreased or increased by one. For standard
memory variables, the
+ +
( Increment ) and
– –
( Decrement ) operators
can be either post-fixed or pre-fixed. For array variables, the operators
must be pre-fixed.
With pre-fixed operators, the memory variable is computed before the
expression is evaluated; with post-fixed operators, the memory variable
is computed after the expression is evaluated.
For loop
FOR
(
start condition; continue condition; re-evaluation
) {
statements
}
⇒
A
FOR
loop is useful for repeating a set of similar actions while a
specified counter is between certain values.
For example:
FOR
( A = 1 ; A
≤
4 ; A + + )
{ C = 3
×
A ; PRINT
”
ANS =
”
, C }
END
⇒
Result : ANS = 3, ANS = 6, ANS = 9, ANS = 12
The processing in this example is:
1.
FOR
A = 1
: This initializes the value of
A
to
1
. Since
A = 1
is consistent
with
A
≤
4
, the
statements
are executed and
A
is incremented by 1.
2. Now
A = 2
. This is consistent with
A
≤
4
, so the
statements
are
executed and
A
is again incremented by 1. And so on.
3. When
A = 5
, it is no longer true that
A
≤
4
, so
statements
are not
executed. The program then moves on to the next block of code.
Sleep command
SLEEP (
time
)
⇒
A
SLEEP
command suspends program execution for a specified time
(up to a maximum of 105 seconds). This is useful for displaying
intermediate results before resuming execution.
Swap command
SWAP (
memory variable A, memory variable B
)
Содержание 9g
Страница 59: ...E 59 2nd STATVAR Graph 2nd STATVAR Graph ...
Страница 65: ...E 65 DATA 57 101 61 117 67 155 2nd STATVAR Graph 2 nd STATVAR 143 2nd STATVAR ...
Страница 66: ...E 66 58 Example 49 31 10 1F16 11111 2 37 8 MODE 2 31 dhbo Example 50 4777 10 1001010101001 2 ...
Страница 68: ...E 68 MODE 2 dhbo dhbo 1234 dhbo 1 IE IF dhbo 24 dhbo Example 53 ...
Страница 71: ...E 71 5 Seconds 1 17 5 3 14 2 5 Seconds 2 ...
Страница 72: ...E 72 10 13 6 17 3 5 Seconds 3 2 5 11 17 4 ...
Страница 74: ...E 74 RUN 1 2 X 2 7 X 5 0 X 1 2 5 X 2 1 2 7 5 2 25 X 2 70 X 49 0 X 1 4 25 70 49 ...
Страница 79: ...E 79 2 A 5 R 4 N 9 S N S 9 436905 5 Seconds 2 5 4 9 3 A 7 R 1 N 14 S N S 14 98 5 Seconds 2 7 1 14 ...
Страница 80: ...E 80 Example 58 Create a program to determine the solutions for linear equations of the form RUN ...
Страница 82: ...E 82 RUN N 1 5 I 486 A 2 CHARGE 4 5 POWER 243 VOLTAGE 2 1 5 5 Seconds ...
Страница 84: ...E 84 G T Example 61 Use a FOR loop to calculate 1 6 1 5 1 4 2 6 2 5 2 4 RUN ...
Страница 87: ...E 87 RUN A 10 C 130 D 2 55 10 2nd RCL CL ESC ...
Страница 117: ...F 30 123 45 DEL 2nd 7 Exemple 2 Après exécution de 1 2 3 4 5 6 rappeler chaque expression 1 2 3 4 5 6 Exemple 3 ...
Страница 123: ...F 36 2nd FIX Exemple 12 1 6000 0 0001666 1 6000 2nd SCI ENG 2nd SCI ENG 2nd SCI ENG Exemple 13 ...
Страница 131: ...F 44 2nd R P 25 ALPHA 56 2nd R P 25 ALPHA 56 Exemple 31 5 120 5 MATH 15 Générer un nombre aléatoire entre 0 et 1 MATH ...
Страница 138: ...F 51 Range 180 180 90 1 25 1 25 0 5 2nd Factor 2 2 Graph sin 2 ALPHA X G T G T 31 2 Zoom avant et arrière sur Y sin 2x ...
Страница 143: ...F 56 DATA 2 13 DATA 3 2 5 9 12 7 2nd STATVAR ...
Страница 144: ...F 57 Graph 2nd STATVAR Graph 2nd STATVAR Graph ...
Страница 148: ...F 61 MODE 1 DATA 15 451 17 475 21 525 28 678 2 nd STATVAR Graph 2nd STATVAR 573 2nd STATVAR ...
Страница 150: ...F 63 2 nd STATVAR 143 2nd STATVAR 58 Exemple 49 31 10 1F16 11111 2 37 8 MODE 2 31 ...
Страница 151: ...F 64 dhbo Exemple 50 4777 10 1001010101001 2 MODE 2 dhbo dhbo 4777 ...
Страница 153: ...F 66 dhbo 1 IE IF dhbo 24 dhbo Exemple 53 1010 2 AND A 16 OR 7 16 1010 2 10 10 MODE 2 dhbo dhbo ...
Страница 156: ...F 69 5 Secondes 1 17 5 3 14 2 5 Secondes 2 ...
Страница 157: ...F 70 10 13 6 17 3 5 Secondes 3 2 5 11 17 4 ...
Страница 159: ...F 72 RUN 1 2 X 2 7 X 5 0 X 1 2 5 X 2 1 2 7 5 2 25 X 2 70 X 49 0 X 1 4 ...
Страница 164: ...F 77 2 A 5 R 4 N 9 S N S 9 436905 5 Secondes 2 5 4 9 3 A 7 R 1 N 14 S N S 14 98 5 Secondes 2 7 1 14 ...
Страница 165: ...F 78 Exemple 58 Créer un programme trouvant les solutions des équations linéaires de la forme RUN 4 ...
Страница 169: ...F 82 Exemple 62 Utiliser le type de programme BaseN pour évaluer ANS 1010 2 AND Y OR 7 16 1 Si Y A 16 Rép 10 10 dhbo ...
Страница 170: ...F 83 A 2 Si Y 11011 8 Rép 1010 2 EDIT dhbo RUN dhbo 11011 ...
Страница 172: ...F 85 CL ESC ...