Gauss-Jordan reduction

Discuss issues related to the Casio Basic Language
Junior Member
Posts: 1
Joined: Sun Feb 09, 2014 12:15 am
Calculators: Casio fx-9860G AU, Casio fx-9860G AU PLUS, Casio Classpad 300, Casio Classpad 330 plus, Casio fx-CG10, Casio Classpad fx-CP400

Gauss-Jordan reduction

Postby somebody1234 » Sun Feb 09, 2014 12:20 am

I'm trying to get a program to do Gauss-Jordan reduction.
1. How do I find the number at a certain location in a matrix?
2. How are row operation commands used?

Senior Member
Posts: 369
Joined: Tue Jan 03, 2012 11:24 pm
Calculators: Casio Afx 1.0, Casio fx-9860GII SD, Casio Classpad 330, Casio fx-CG20, Casio Classpad fx-CP400

Re: Gauss-Jordan reduction

Postby helder7 » Sun Feb 09, 2014 4:03 pm

Welcome to the forum somebody1234. Thank you for joining us.

If you are working with ClassPad you can store the matrix to a variable name.
In fx9860g and fx-cg the matrix should be saved under matrix memory Mat [A-Z].

Code: Select all
In fx9860g/fx-cg:
[[1,2,3],[4,5,6],[7,8,9]]→Mat A

In Classpad:

To obtain the value of a cell given x and y coordinates (for exemple 1,1), you can do:
Code: Select all
In fx9860g/fx-cg:
Mat A[1,1]

In Classpad:

The main difference between matrix in classpad and fx9860/fx-cg is the way how the matrix is stored. The operations are similar.
Regarding the second part of your question, the row commands are used in the following way:

Code: Select all
Row+ Mat [A-Z],rowA,rowB

This adds the contents of rowA to rowB, return a Matrix.

Code: Select all
*Row+ Factor,Mat [A-Z],rowA,rowB

This adds the contents of rowA to rowB factor times, return a matrix. The end result of B is (factor * A) + B.

Code: Select all
*Row value,matrix,row

This multiplies the specified row in the matrix by the value, return a matrix.
SiO2 + CaCO3 ----------> CaSiO3 + CO2

Return to Casio Basic Development

Who is online

Users browsing this forum: No registered users and 2 guests