8-6-1

Using Calculator Functions in Programs

8-6 Using Calculator Functions in Programs

kText 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.

kUsing 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.

uTo swap the contents of two rows (Swap)Example 1 To swap the values of Row 2 and Row 3 in the following matrix:

Matrix A =

 

1

2

 

3

4

 

 

5

6

 

 

The following is the syntax to use for this program.

Swap A, 2, 3_

Rows to be swapped

Matrix name

Mat A

Executing this program produces the following result.

20070201