source: git/Tst/Old/substit.tst @ 5071cc

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