We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 789c46e commit 2b2ff9cCopy full SHA for 2b2ff9c
src/ellip.jl
@@ -39,7 +39,7 @@ function _ellipk(m::Float64)
39
isnan(m) && return NaN
40
(m === -Inf) && return 0.0
41
42
- flag_is_m_neg = false
+ flag_is_m_neg = m < 0.0
43
if flag_is_m_neg
44
x = m / (m-1) #dealing with negative args
45
else
0 commit comments