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 | // |
---|
4 | ring r1 = 0,(x,y,z),dp; |
---|
5 | r1; |
---|
6 | "-------------------------------"; |
---|
7 | poly s1=x2+z3+x+2y+2z; |
---|
8 | s1; |
---|
9 | subst(s1,x,2); |
---|
10 | "-----------------------------"; |
---|
11 | vector v=[x2,x,0,y2]; |
---|
12 | v; |
---|
13 | subst(v,y,8); |
---|
14 | "----------------------------"; |
---|
15 | ideal i=s1,z3; |
---|
16 | i; |
---|
17 | subst(i,z,-2); |
---|
18 | "----------------------------"; |
---|
19 | module m=v,[0,x2,y2]; |
---|
20 | int a=4; |
---|
21 | m; |
---|
22 | subst(m,x,a); |
---|
23 | "-----------------------------"; |
---|
24 | listvar(all); |
---|
25 | kill r1; |
---|
26 | // gmg, 17.9.99 |
---|
27 | ring r = 0,(x,y),ds; |
---|
28 | poly 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 | |
---|
33 | LIB "tst.lib";tst_status(1);$; |
---|
Note: See
TracBrowser
for help on using the repository browser.