Closed gwater closed 4 years ago
Elliptic.K(x) currently raises a DomainError for negative x.
Elliptic.K(x)
DomainError
x
However, K(x) can be calculated for negative arguments with the existing routine using the identity given in Eq. (11) of this text.
Ideally, Elliptic.K(x) would just check for negative x and map it to a positive x automatically.
K, E, and ellipke now accept negative arguments.
K
E
ellipke
Elliptic.K(x)
currently raises aDomainError
for negativex
.However, K(x) can be calculated for negative arguments with the existing routine using the identity given in Eq. (11) of this text.
Ideally,
Elliptic.K(x)
would just check for negativex
and map it to a positivex
automatically.