spielwiese
Last change
on this file since 866f78 was
866f78,
checked in by Hans Schönemann <hannes@…>, 24 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 | // |
---|
4 | pagelength = 10000; |
---|
5 | ring r1 = 0,(x,y,z),dp; |
---|
6 | r1; |
---|
7 | "-------------------------------"; |
---|
8 | poly s1=x2+z3+x+2y+2z; |
---|
9 | s1; |
---|
10 | subst(s1,x,2); |
---|
11 | "-----------------------------"; |
---|
12 | vector v=[x2,x,0,y2]; |
---|
13 | v; |
---|
14 | subst(v,y,8); |
---|
15 | "----------------------------"; |
---|
16 | ideal i=s1,z3; |
---|
17 | i; |
---|
18 | subst(i,z,-2); |
---|
19 | "----------------------------"; |
---|
20 | module m=v,[0,x2,y2]; |
---|
21 | int a=4; |
---|
22 | m; |
---|
23 | subst(m,x,a); |
---|
24 | "-----------------------------"; |
---|
25 | listvar(all); |
---|
26 | kill r1; |
---|
27 | // gmg, 17.9.99 |
---|
28 | ring r = 0,(x,y),ds; |
---|
29 | poly 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 | |
---|
34 | LIB "tst.lib";tst_status(1);$; |
---|
Note: See
TracBrowser
for help on using the repository browser.