beautypg.com

Matrix – HP Prime Graphing Calculator User Manual

Page 545

background image

Programming

541

TEXTOUT_P(A ,90,30,2,

#000000,100,#99CC33);
sign*-1

sign;
K+1

K;

UNTIL 0;
END;

The program executes
until the user presses

O

to terminate. The

spaces after K (the number of the term) and A (the current

approximation) in the TEXTOUT_P commands are there

to overwrite the previously displayed value.

Matrix

Some matrix commands take as their argument the matrix
variable name on which the command is applied. Valid
names are the global variables M0–M9 or a local
variable that contains a matrix.

ADDCOL

Syntax: ADDCOL
(name [ ,value1,...,valuen],column_number)
Inserts values into a new column inserted before
column_number in the specified matrix. You enter the
values as a vector. (These are not optional arguments.) The
values must be separated by commas and the number of
values must be the same as the number of rows in the
matrix name.

ADDROW

Syntax: ADDROW
(name [ ,value1,...,valuen],row_number)
Inserts values into a new row inserted before row_number
in the specified matrix. You enter the values as a vector.
(These are not optional arguments.) The values must be
separated by commas and the number of values must be
the same as the number of columns in the matrix name.

DELCOL

Syntax: DELCOL(name ,column_number)
Deletes column column_number from matrix name.