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 | |
---|
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);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.