beautypg.com

K text display, K using matrix row operations in a program – Casio FX-CG10 User Manual

Page 314

background image

8-30

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 = ?

• The example below shows how you specify the display color of a text string by inserting a

color command before the string in the program.

Blue "CASIO"

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

• 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-Matrix mode and then use the Matrix Editor to input the

matrix, and then enter the Program 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:

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

This manual is related to the following products: