1
0
mirror of https://github.com/kalmarek/SmallHyperbolic synced 2024-11-27 16:35:26 +01:00

global const PRECISION

This commit is contained in:
kalmarek 2020-05-13 15:19:09 +02:00
parent 9698901921
commit fbe58d815b
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15

6
PSL.jl
View File

@ -4,6 +4,8 @@ using DelimitedFiles
include("src/nemo_utils.jl") include("src/nemo_utils.jl")
const PRECISION = 256
function parse_eval(arg, expr_str, var) function parse_eval(arg, expr_str, var)
ex = Meta.parse(expr_str) ex = Meta.parse(expr_str)
svar = :($var) svar = :($var)
@ -14,7 +16,7 @@ function parse_eval(arg, expr_str, var)
end end
end end
function load_discrete_repr(i, q=109; CC=AcbField(512)) function load_discrete_repr(i, q = 109; CC = AcbField(PRECISION))
ζ = root_of_unity(CC, (q - 1) ÷ 2) ζ = root_of_unity(CC, (q - 1) ÷ 2)
degree = q - 1 degree = q - 1
@ -35,7 +37,7 @@ function load_discrete_repr(i, q=109; CC=AcbField(512))
return a, b return a, b
end end
function load_principal_repr(i, q=109; CC=AcbField(512)) function load_principal_repr(i, q = 109; CC = AcbField(PRECISION))
ζ = root_of_unity(CC, (q - 1) ÷ 2) ζ = root_of_unity(CC, (q - 1) ÷ 2)
degree = q + 1 degree = q + 1