File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3232 converts float to int or small rational numbers
3333"""
3434
35- function nice_parameter (u:: Complex{T} ; abstol= 1e-6 ) where {T <: Real }
35+ function nice_parameter (u:: Complex{T} ; abstol = 1e-6 ) where {T <: Real }
3636 α = nice_parameter (real (u); abstol)
3737 β = nice_parameter (imag (u); abstol)
3838 return β ≈ 0 ? α : Complex (α, β)
3939end
4040
41- nice_parameter (x; abstol= 1e-6 ) = small_rational (x; abstol)
41+ nice_parameter (x; abstol = 1e-6 ) = small_rational (x; abstol)
4242
43- nice_parameters (p; abstol= 1e-6 ) = nice_parameter .(p; abstol)
43+ nice_parameters (p; abstol = 1e-6 ) = nice_parameter .(p; abstol)
4444
45- function small_rational (x:: T ; abstol= 1e-6 , M= 20 ) where {T <: Real }
45+ function small_rational (x:: T ; abstol = 1e-6 , M = 20 ) where {T <: Real }
4646 a = floor (Int, x)
4747 r = x - a
4848 for den in 2 : M
You can’t perform that action at this time.
0 commit comments