mirror of
https://github.com/kalmarek/SmallHyperbolic
synced 2024-11-23 23:40:28 +01:00
global const PRECISION
This commit is contained in:
parent
9698901921
commit
fbe58d815b
6
PSL.jl
6
PSL.jl
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user