Jeroen Demeyer on Thu, 24 Sep 2015 11:14:05 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PATCH] lfun tests assume elldata


The tests "lfun" and "lfuntype" assume that the elldata package is installed. This is easily fixed by writing the coefficients instead of the Cremona labels in the tests, see patch.
commit 42633e5200d4c88fcf80b4ba064c61933e7b08e9
Author: Jeroen Demeyer <jdemeyer@cage.ugent.be>
Date:   Thu Sep 24 11:04:18 2015 +0200

    Don't use Cremona labels in L-function tests

diff --git a/src/test/in/lfun b/src/test/in/lfun
index 974ddd3..fa0e411 100644
--- a/src/test/in/lfun
+++ b/src/test/in/lfun
@@ -7,7 +7,7 @@ L148=lfuncreate([n->dirzetak(K,n),0,[0,0,0],1,D,1,K.reg*4/sqrt(D)]);
 for(i=1,10,print(i,":",lfun(L148,-i)))
 L117=lfuncreate([n->dirdiv(dirzetak(nfinit('x^4-'x^3-'x^2+'x+1),n),zetaan(n)),0,[0,1,1],1,117,1]); /* [0,0,1,1]-[0] */
 for(i=1,10,print(i,":",lfun(L117,i)))
-e121=ellinit("121a1");
+e121=ellinit([1,1,1,-30,-76]);  \\ 121a1
 L121=lfuninit(e121,[1,0,100],2);
 lfun(L121,1+100*I)
 lfun(L121,1+x+O(x^3))
@@ -206,7 +206,7 @@ lfun(L,2)/(Pi^2/6*Catalan)
 lfunhardy(L,2)
 lfun(lfunetaquo([1,1;3,1;5,1;15,1]),2)
 lfun(lfunetaquo(Mat([1,24])),2)
-lfun(ellinit("15a1"),2)
+lfun(ellinit([1,1,1,-10,-10]),2)  \\ 15a1
 
 \\ residue 2*Pi/sqrt(23) at 1
 L=lfuncreate([n->Vec(qfrep([2,1;1,12],n,1))*2,0,[0,1],1,23,1,0]);
diff --git a/src/test/in/lfuntype b/src/test/in/lfuntype
index d36eb29..60b18bf 100644
--- a/src/test/in/lfuntype
+++ b/src/test/in/lfuntype
@@ -16,11 +16,11 @@ polsubcyclo(11,5),
 -4,
 857,
 [4,[0,1,3,2,0]],
-ellinit("11a1"),
+ellinit([0,-1,1,-10,-20]),  \\ 11a1
 ellinit([1,1]),
 ellinit([0,0,0,-7,3]),
 lfunetaquo([1,1;3,1;5,1;15,1]),
-lfunsymsq(ellinit("11a1")),
+lfunsymsq(ellinit([0,-1,1,-10,-20])),  \\ 11a1
 lfunmul(-4,-3),
 lfundiv(x^3-x-1,1),
 bnfinit(x^4+2*x^2+5),