source: git/Tst/Manual/genericity.tst @ 0d6b7fc

spielwiese 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: 500 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "control.lib";
3// TwoPendula
4ring r=(0,m1,m2,M,g,L1,L2),Dt,dp;
5module RR =
6[m1*L1*Dt^2, m2*L2*Dt^2, -1, (M+m1+m2)*Dt^2],
7[m1*L1^2*Dt^2-m1*L1*g, 0, 0, m1*L1*Dt^2],
8[0, m2*L2^2*Dt^2-m2*L2*g, 0, m2*L2*Dt^2];
9module R = transpose(RR);
10module SR = std(R);
11matrix T = lift(R,SR);
12genericity(T);
13//-- The result might be different when computing reduced bases:
14matrix T2;
15option(redSB);
16option(redTail);
17module SR2 = std(R);
18T2 =  lift(R,SR2);
19genericity(T2);
20tst_status(1);$
Note: See TracBrowser for help on using the repository browser.