source: git/Tst/Old/substit.tst @ 1ebec3

spielwiese
Last change on this file since 1ebec3 was 37cd955, checked in by Hans Schoenemann <hannes@…>, 14 years ago
pagelength removed git-svn-id: file:///usr/local/Singular/svn/trunk@13172 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 689 bytes
Line 
1//
2// test script for subst command
3//
4ring r1 = 0,(x,y,z),dp;
5r1;
6"-------------------------------";
7poly s1=x2+z3+x+2y+2z;
8s1;
9subst(s1,x,2);
10"-----------------------------";
11vector v=[x2,x,0,y2];
12v;
13subst(v,y,8);
14"----------------------------";
15ideal i=s1,z3;
16i;
17subst(i,z,-2);
18"----------------------------";
19module m=v,[0,x2,y2];
20int a=4;
21m;
22subst(m,x,a);
23"-----------------------------";
24listvar(all);
25kill r1;
26// gmg, 17.9.99
27ring r = 0,(x,y),ds;
28poly f = y2-2x10y-x9y3+1/4x8y5-1/8x7y7+5/64x6y9-7/128x5y11+21/512x4y13
29        -33/1024x3y15+429/16384x2y17+x20-715/32768xy19+x19y2+2431/131072y21;
30        matrix Hess = jacob(jacob(f));
31        subst(Hess,x,0,y,0);
32
33LIB "tst.lib";tst_status(1);$;
Note: See TracBrowser for help on using the repository browser.