source: git/Tst/Buch/Example_6_1_3.tst @ 107aac

spielwiese
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
Line 
1LIB "tst.lib";
2tst_init();
3
4proc 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
18ring R=0,(x,y),ds;
19poly p=2+x+y2;
20poly q=invers(p,4);
21q;
22
23jet(p*q,4);
24
25tst_status(1);$
26       
Note: See TracBrowser for help on using the repository browser.