Skip to content

Commit a404585

Browse files
repeat formatting
1 parent 283f3ed commit a404585

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/numeric_utils.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ end
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(α, β)
3939
end
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

0 commit comments

Comments
 (0)