fieker-DuValspielwiese
Last change
on this file since 107aac was
891438c,
checked in by Gerhard Pfister <pfister@…>, 23 years ago
|
*GP: initial release
git-svn-id: file:///usr/local/Singular/svn/trunk@5579 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
303 bytes
|
Rev | Line | |
---|
[891438c] | 1 | LIB "tst.lib"; |
---|
| 2 | tst_init(); |
---|
| 3 | |
---|
| 4 | proc invers(poly p, int k) |
---|
| 5 | { |
---|
| 6 | poly q=1/p[1]; |
---|
| 7 | poly re=q; |
---|
| 8 | p=q*(p[1]-jet(p,k)); |
---|
| 9 | poly s=p; |
---|
| 10 | while(p!=0) |
---|
| 11 | { |
---|
| 12 | re=re+q*p; |
---|
| 13 | p=jet(p*s,k); |
---|
| 14 | } |
---|
| 15 | return(re); |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | ring R=0,(x,y),ds; |
---|
| 19 | poly p=2+x+y2; |
---|
| 20 | poly q=invers(p,4); |
---|
| 21 | q; |
---|
| 22 | |
---|
| 23 | jet(p*q,4); |
---|
| 24 | |
---|
| 25 | tst_status(1);$ |
---|
| 26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.