Casio fx-9860G SD Calculator User Manual


 
20050401
8-6 Using Calculator Functions in Programs
k Text Display
You can include text in a program by simply enclosing it between double quotation marks.
Such text appears on the display during program execution, which means you can add
labels to input prompts and results.
Program Display
”CASIO” CASIO
? X?
”X =” ? X X = ?
If the text is followed by a calculation formula, be sure to insert a display command (^)
between the text and calculation.
Inputting more than 21 characters causes the text to move down to the next line. The
screen scrolls automatically if the text exceeds 21 characters.
•You can specify up to 255 bytes of text for a comment.
k Using Matrix Row Operations in a Program
These commands let you manipulate the rows of a matrix in a program.
For this program, enter the RUN
MAT mode and then use the Matrix Editor to input the
matrix, and then enter the PRGM mode to input the program.
u To swap the contents of two rows (Swap)
Example 1 To swap the values of Row 2 and Row 3 in the following matrix:
12
Matrix A = 34
56
The following is the syntax to use for this program.
Swap A, 2, 3_
Mat A
Executing this program produces the following result.
8-6-1
Using Calculator Functions in Programs
Rows to be swapped
Matrix name