passagemath-lcalc 10.6.31rc1__cp311-cp311-macosx_13_0_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of passagemath-lcalc might be problematic. Click here for more details.
- passagemath_lcalc-10.6.31rc1.dist-info/METADATA +92 -0
- passagemath_lcalc-10.6.31rc1.dist-info/RECORD +19 -0
- passagemath_lcalc-10.6.31rc1.dist-info/WHEEL +6 -0
- passagemath_lcalc-10.6.31rc1.dist-info/top_level.txt +2 -0
- passagemath_lcalc.dylibs/libLfunction.2.0.0.dylib +0 -0
- passagemath_lcalc.dylibs/libgf2x.3.dylib +0 -0
- passagemath_lcalc.dylibs/libgmp.10.dylib +0 -0
- passagemath_lcalc.dylibs/libmpfr.6.dylib +0 -0
- passagemath_lcalc.dylibs/libntl.44.dylib +0 -0
- passagemath_lcalc.dylibs/libpari-gmp-tls.dylib +0 -0
- sage/all__sagemath_lcalc.py +2 -0
- sage/lfunctions/all__sagemath_lcalc.py +7 -0
- sage/lfunctions/lcalc.py +413 -0
- sage/libs/all__sagemath_lcalc.py +1 -0
- sage/libs/lcalc/__init__.py +1 -0
- sage/libs/lcalc/lcalc_Lfunction.cpython-311-darwin.so +0 -0
- sage/libs/lcalc/lcalc_Lfunction.pxd +129 -0
- sage/libs/lcalc/lcalc_Lfunction.pyx +982 -0
- sage/libs/lcalc/lcalc_sage.h +66 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* sage_setup: distribution = sagemath-lcalc
|
|
2
|
+
*/
|
|
3
|
+
#include "lcalc/L.h"
|
|
4
|
+
int *new_ints(int l)
|
|
5
|
+
{
|
|
6
|
+
return new int[l];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
void del_ints(int *A)
|
|
11
|
+
{
|
|
12
|
+
delete[] A;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
double *new_doubles(int l)
|
|
17
|
+
{
|
|
18
|
+
return new double[l];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
void del_doubles(double *A)
|
|
23
|
+
{
|
|
24
|
+
delete[] A;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
Complex *new_Complexes(int l)
|
|
29
|
+
{
|
|
30
|
+
return new Complex[l];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
void del_Complexes(Complex *A)
|
|
35
|
+
{
|
|
36
|
+
delete[] A;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
Complex new_Complex(double r, double i)
|
|
40
|
+
{
|
|
41
|
+
return Complex(r,i);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
void testL(L_function<Complex> *L)
|
|
46
|
+
{
|
|
47
|
+
int i;
|
|
48
|
+
cout << "number of coefficients " << L->number_of_dirichlet_coefficients << endl;
|
|
49
|
+
cout << "Dirichlet coeffs"<< endl;
|
|
50
|
+
for (i=0;i< min(30, L->number_of_dirichlet_coefficients +1); i++)
|
|
51
|
+
cout << L->dirichlet_coefficient[i]<<endl;
|
|
52
|
+
cout << "Q " << L->Q << endl;
|
|
53
|
+
cout << "Omega " << L->OMEGA << endl;
|
|
54
|
+
cout << "a " << L->a << endl;
|
|
55
|
+
cout << "Period " << L->period << endl;
|
|
56
|
+
cout << "Number of Poles " << L->number_of_poles << endl;
|
|
57
|
+
cout << "What type " << L->what_type_L << endl;
|
|
58
|
+
for (i=0;i< L->number_of_poles+1;i++)
|
|
59
|
+
{
|
|
60
|
+
cout<< "pole[" << i << "] = " << L->pole[i] << endl;
|
|
61
|
+
cout<< "residue[" << i << "] = " << L->residue[i] << endl;
|
|
62
|
+
}
|
|
63
|
+
cout << "Value at .5 " << L->value(.5) <<endl;
|
|
64
|
+
cout << "Value at 1" << L->value(1.0) <<endl;
|
|
65
|
+
cout << "Value at .5+I" << L->value(.5+I) <<endl;
|
|
66
|
+
}
|