source: git/Tst/Buch/Example_6_1_3.tst @ 8d1432e

fieker-DuValspielwiese
Last change on this file since 8d1432e was 75f460, checked in by Hans Schoenemann <hannes@…>, 9 years ago
format
  • Property mode set to 100644
File size: 295 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);$
Note: See TracBrowser for help on using the repository browser.