diff --git a/src/julia/Float.jl b/src/julia/Float.jl index b881421567..2508f1a339 100644 --- a/src/julia/Float.jl +++ b/src/julia/Float.jl @@ -10,9 +10,9 @@ # ############################################################################### -JuliaRealField = Floats{BigFloat}() +const JuliaRealField = Floats{BigFloat}() -RDF = Floats{Float64}() +const RDF = Floats{Float64}() parent(a::T) where T <: AbstractFloat = Floats{T}() diff --git a/src/julia/Integer.jl b/src/julia/Integer.jl index 84ab037e6a..5ae91c9650 100644 --- a/src/julia/Integer.jl +++ b/src/julia/Integer.jl @@ -250,8 +250,8 @@ end # ############################################################################### -sqrt_moduli = [3, 5, 7, 8] -sqrt_residues = [[0, 1], [0, 1, 4], [0, 1, 2, 4], [0, 1, 4]] +const sqrt_moduli = [3, 5, 7, 8] +const sqrt_residues = [[0, 1], [0, 1, 4], [0, 1, 2, 4], [0, 1, 4]] @doc raw""" sqrt(a::T; check::Bool=true) where T <: Integer @@ -366,14 +366,14 @@ function root(a::T, n::Int; check::Bool=true) where T <: Integer end end -moduli3 = [7, 8, 13] -residues3 = [[0, 1, 6], [0, 1, 3, 5, 7], [0, 1, 5, 8, 12]] +const moduli3 = [7, 8, 13] +const residues3 = [[0, 1, 6], [0, 1, 3, 5, 7], [0, 1, 5, 8, 12]] -moduli5 = [8, 11, 31] -residues5 = [[0, 1, 3, 5, 7], [0, 1, 10], [0, 1, 5, 6, 25, 26, 30]] +const moduli5 = [8, 11, 31] +const residues5 = [[0, 1, 3, 5, 7], [0, 1, 10], [0, 1, 5, 6, 25, 26, 30]] -moduli7 = [8, 29, 43] -residues7 = [[0, 1, 3, 5, 7], [0, 1, 12, 17, 28], [0, 1, 6, 7, 36, 37, 42]] +const moduli7 = [8, 29, 43] +const residues7 = [[0, 1, 3, 5, 7], [0, 1, 12, 17, 28], [0, 1, 6, 7, 36, 37, 42]] function ispower_moduli(a::Integer, n::Int) if mod(n, 3) == 0