fieker-DuValspielwiese
Release-4-3-2p2
Last change
on this file since 0d6b7fc was
894057,
checked in by Oleksandr Motsak <motsak@…>, 13 years ago
|
ADD: Tests from online manual (res+stat on mamawutz): short ones Tst/Manual/s.lst
|
-
Property mode set to
100644
|
File size:
367 bytes
|
Rev | Line | |
---|
[894057] | 1 | LIB "tst.lib"; tst_init(); |
---|
| 2 | LIB "linalg.lib"; |
---|
| 3 | ring r=0,(x),dp; |
---|
| 4 | matrix A[5][4]=1,3,-1,4,2,5,-1,3,1,3,-1,4,0,4,-3,1,-3,1,-5,-2; |
---|
| 5 | print(A); |
---|
| 6 | list Z=gaussred(A); //construct P,U,S s.t. P*A=U*S |
---|
| 7 | print(Z[1]); //P |
---|
| 8 | print(Z[2]); //U |
---|
| 9 | print(Z[3]); //S |
---|
| 10 | print(Z[4]); //rank |
---|
| 11 | print(Z[1]*A); //P*A |
---|
| 12 | print(Z[2]*Z[3]); //U*S |
---|
| 13 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.