source: git/Tst/New/longalg_missing_3.tst @ 4da485

spielwiese
Last change on this file since 4da485 was 2c2d03a, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
ADD: test trans. ext. + imap var -> param...
  • Property mode set to 100644
File size: 666 bytes
Line 
1LIB "tst.lib"; tst_init();
2ring r = (0,A,B,dt,dx,dy),(Tx,Ty,Tt),(c,dp);
3r;
4matrix M[4][4] =
5    // direct equation:
6    -A^2, -B^2, 1, 0,
7    // central difference u_tt
8    0, 0,  -dt^2*Tt, (Tt-1)^2,
9    // central difference u_xx
10    -dx^2*Tx, 0, 0, (Tx-1)^2,
11    // central difference u_yy
12    0, -dy^2*Ty, 0, (Ty-1)^2;
13
14print(M);
15
16//=========================================
17// CHECK THE CORRECTNESS OF EQUATIONS AS INPUT:
18ring rX = (0,A,B,dt,dx,dy,Tx,Ty,Tt),(Uxx, Uyy,Utt, U),(c,Dp);
19rX;
20def M = imap(r,M); // T? -> params! // BUG!
21
22print(M);
23
24vector X = [Uxx, Uyy, Utt, U];
25print(M*X);
26
27// END CHECK
28//=========================================
29tst_status(1);$
30
Note: See TracBrowser for help on using the repository browser.