For Casio Graphic Calculators
Dimensioning Lists and Matrices within a Program
If you know before the program starts what the dimension of a matrix is
going to be then the program can create the matrix by just assigning
values:
e.g. [[1,2,3][4,5,6][7,8,9]]->Mat A will create a 3x3 matrix
with the given entries.
However if you don't know beforehand and the dimension will depend
on user input while the program is running then
the following information will apply:
On the later models such as 9970 and 9850plus you can make the program
set up the dimension of lists and matrices like so:
(Dim is on menu: optn f1 f3)
9->Dim List 1 ; a list with 9 entries
{3,4}->Dim Mat A ; a 3 x 4 matrix
On 9850 and similar models the above doesn't work but there
are tricks available to set up the dimension from within a program.
Seq(0,X,1,9,1)->List 1 ; a list with 9 entries
To dimension a matrix is quite convoluted.
The following creates a matrix with R rows and C cols in Mat Ans
Seq(0,R,1,R,1->List 1
List->Mat(List 1) ; List->Mat( is on menu: optn f1 f2
Mat Ans->Mat A
For 2->J To C ; you could use any variable in place of J
Augment(Mat A,Mat Ans ; Augment( is on menu: optn f2 f5
Next
Or if you want a square matrix you can use 0Identity N
which first creates an NxN identity matrix, and multiplying
it by zero, zeros all elements.
On old models such as 7700GE and 9700GE you have to set up
the dimension of matrices manually, before running a program
that uses matrices.
On even older models such as 7700GB you cannot use matrices
in a program at all.
On oldest models such as 7000G there is no matrix facility.
(c) Roy F.A. Maclean 17th May 1999, updated 27th August 2000.
rfamgm at gmail
http://www.spiderpixel.co.uk/caspro