Origin for each line in Linear_Algebra.red from check-in 5f892713c3:

5f892713c3 2021-03-03 trnsz@pobox.c: %%%%%%%%%%%%%%%%%%%%%
5f892713c3 2021-03-03 trnsz@pobox.c: %  LINEAR ALGEBRA
5f892713c3 2021-03-03 trnsz@pobox.c: %%%%%%%%%%%%%%%%%%%%%
5f892713c3 2021-03-03 trnsz@pobox.c: 
5f892713c3 2021-03-03 trnsz@pobox.c: % Enable fancy output for easier viewing of
5f892713c3 2021-03-03 trnsz@pobox.c: % matrix output
5f892713c3 2021-03-03 trnsz@pobox.c: fancy_output$
5f892713c3 2021-03-03 trnsz@pobox.c: 
5f892713c3 2021-03-03 trnsz@pobox.c: % Load linear algebra package
5f892713c3 2021-03-03 trnsz@pobox.c: load_package linalg$
5f892713c3 2021-03-03 trnsz@pobox.c: 
5f892713c3 2021-03-03 trnsz@pobox.c: % Define a complex 3x3 matrix
5f892713c3 2021-03-03 trnsz@pobox.c: m1 := mat((1+i*3, 2-i*5, 7-i), (4-i*2, 6+i*9,-8+i*4), (-3-i*7, 3+i*2, -1+i*6));
5f892713c3 2021-03-03 trnsz@pobox.c: 
5f892713c3 2021-03-03 trnsz@pobox.c: % Determinant of matrix
5f892713c3 2021-03-03 trnsz@pobox.c: write "|m1| = ", det(m1)$
5f892713c3 2021-03-03 trnsz@pobox.c: 
5f892713c3 2021-03-03 trnsz@pobox.c: % Trace of matrix
5f892713c3 2021-03-03 trnsz@pobox.c: write "trace(m1) = ", trace(m1)$
5f892713c3 2021-03-03 trnsz@pobox.c: 
5f892713c3 2021-03-03 trnsz@pobox.c: % Characteristic polynomial
5f892713c3 2021-03-03 trnsz@pobox.c: write "characteristic polynomial of m1:";
5f892713c3 2021-03-03 trnsz@pobox.c: char_poly(m1,eta);
5f892713c3 2021-03-03 trnsz@pobox.c: 
5f892713c3 2021-03-03 trnsz@pobox.c: % Enable real arithmetic
5f892713c3 2021-03-03 trnsz@pobox.c: on rounded$
5f892713c3 2021-03-03 trnsz@pobox.c: 
5f892713c3 2021-03-03 trnsz@pobox.c: % Singular value decomposition of a matrix.
5f892713c3 2021-03-03 trnsz@pobox.c: a := mat((1,3),(-4,3));
5f892713c3 2021-03-03 trnsz@pobox.c: write "Singular Value Decomposition of a:"$
5f892713c3 2021-03-03 trnsz@pobox.c: svd(a);

iCAS Bundled REDUCE Scripts
Homepage | GitHub Mirror | SourceHut Mirror | NotABug Mirror | Chisel Mirror | Chisel RSS ]