spielwiese
Last change
on this file since 4e59df4 was
7c99d0,
checked in by Hans Schönemann <hannes@…>, 18 years ago
|
*hannes: SORT for factorize
git-svn-id: file:///usr/local/Singular/svn/trunk@8836 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
501 bytes
|
Line | |
---|
1 | LIB "tst.lib"; |
---|
2 | tst_init(); |
---|
3 | |
---|
4 | //input script that crashes Singular |
---|
5 | // neumann@ms.unimelb.edu.au (Walter D. Neumann) |
---|
6 | ring r=0,(x,y,z,u,v,a,b),lp; |
---|
7 | option(prot); |
---|
8 | poly f=x6y4-x-a;poly g=x9y6-x-b; |
---|
9 | poly s=z-ux-vy; |
---|
10 | ideal id=s,f; |
---|
11 | poly f1=eliminate(id,y)[1];f1; |
---|
12 | ideal id=s,g; |
---|
13 | poly g1=eliminate(id,y)[1];g1; |
---|
14 | poly h=resultant(f1,g1,x);h; |
---|
15 | factorize(h); |
---|
16 | poly zpol=_[1][2]; |
---|
17 | int i; int j; int k; |
---|
18 | for (i=6; i>=0; i=i-1) |
---|
19 | { |
---|
20 | for( j=0; j<=6-i; j=j+1) |
---|
21 | { |
---|
22 | k=6-i-j; |
---|
23 | i,j,k; |
---|
24 | factorize(zpol/(z^i*u^j*v^k)); |
---|
25 | } |
---|
26 | } |
---|
27 | |
---|
28 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.