source: git/Tst/Manual/interpolation.tst @ 228e0b

fieker-DuValspielwiese
Last change on this file since 228e0b was 894057, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
ADD: Tests from online manual (res+stat on mamawutz): short ones Tst/Manual/s.lst
  • Property mode set to 100644
File size: 620 bytes
Line 
1LIB "tst.lib"; tst_init();
2  ring r=0,(x,y),dp;
3  ideal p_1=x,y;
4  ideal p_2=x+1,y+1;
5  ideal p_3=x+2,y-1;
6  ideal p_4=x-1,y+2;
7  ideal p_5=x-1,y-3;
8  ideal p_6=x,y+3;
9  ideal p_7=x+2,y;
10  list l=p_1,p_2,p_3,p_4,p_5,p_6,p_7;
11  intvec v=2,1,1,1,1,1,1;
12  ideal j=interpolation(l,v);
13  // generator of degree 3 gives the equation of the unique
14  // singular cubic passing
15  // through p_1,...,p_7 with singularity at p_1
16  j;
17  // computes values of generators of j at p_4, results should be 0
18  subst(j,x,1,y,-2);
19  // computes values of derivatives d/dx of generators at (0,0)
20  subst(diff(j,x),x,0,y,0);
21tst_status(1);$
Note: See TracBrowser for help on using the repository browser.