Matrices

1.C++ interface

Analyziz completes Algebramix by providing the user with special variants for matrices with numerical type entries:

Computations of eigen values and vectors are implemented in the following files:

2.Mathemagix interface

Mmx]  
use "analyziz";
type_mode? := true;
Mmx]  
rnd () == {
  x == uniform_deviate (0.0, 1.0);
  return ball (x, 0.0000001);
};
Mmx]  
M == [ rnd () | i in 0..3 || j in 0..3 ]

:

Mmx]  
significant_digits := 5; // print 5 digits only
eigen_solve M

:

Mmx]  
v == eigenvalues M

:

Mmx]  
radius v[0]

:

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License. If you don't have this file, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.