Skip to content

Commit

Permalink
Merge pull request #11 from jlapeyre/fix/ceil-round
Browse files Browse the repository at this point in the history
Remove redundant use of round
  • Loading branch information
matthewware committed Apr 6, 2020
2 parents 3b0eef6 + 836d761 commit 2e7ae9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/char-values.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function charλ(q::Real, nu_::Real; k::UnitRange=1:1) # reduced = true
nu0 = nu + maximum(k)
C = (8.46 + 0.444*nu0)/(1 + 0.085*nu0)
D = (0.24 + 0.0214*nu0)/(1 + 0.059*nu0)
N = round(Int,ceil((nu0 + 2 + C*abs(q)^D)/2)) # matrix size is 2N+1
N = ceil(Int, (nu0 + 2 + C*abs(q)^D)/2) # matrix size is 2N+1

(two, q2, nu2) = float.(promote(2, q, nu))
d0 = (two .* (-N:N) .- nu2).^2
Expand Down

0 comments on commit 2e7ae9e

Please sign in to comment.