packages feed

jacobi-theta 0.1.0.0 → 0.1.1.0

raw patch · 5 files changed

+14/−5 lines, 5 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,3 +1,8 @@+## 0.1.1.0 - 2023-02-25++Some values of the Jacobi theta functions were wrong.++ ## 0.1.0.0 - 2023-02-17 -* Initial release.+Initial release.
README.md view
@@ -1,3 +1,7 @@ # jacobi-theta +<!-- badges: start -->+[![Check](https://github.com/stla/jacobi-theta/actions/workflows/GithubAction.yml/badge.svg)](https://github.com/stla/jacobi-theta/actions/workflows/GithubAction.yml)+<!-- badges: end -->+ Evaluation of the Jacobi theta functions.
jacobi-theta.cabal view
@@ -1,5 +1,5 @@ name:                jacobi-theta-version:             0.1.0.0+version:             0.1.1.0 synopsis:            Jacobi Theta Functions description:         Evaluation of the Jacobi theta functions. homepage:            https://github.com/stla/jacobi-theta#readme
src/Math/JacobiTheta.hs view
@@ -70,7 +70,7 @@  jtheta1Alt :: Cplx -> Cplx -> Cplx jtheta1Alt z tau = -  if imagPart tau < 1.3 +  if imagPart tau > 1.3      then       let w = pi * tau in        i_ * jtheta1Alt2 (z / w) (i_ / w) / falpha z tau
tests/Main.hs view
@@ -12,7 +12,7 @@ q = exp (-pi)  q' :: Complex Double -q' = exp (-pi/100)+q' = exp (-pi/10)  q'' :: Complex Double  q'' = exp (i_ * pi * tau)@@ -30,7 +30,7 @@         (approx 10 expected),      testCase "another jtheta1 value" $ do-      let expected = 0.0284051242069853 :+ 0.0+      let expected = 1.75929905417707 :+ 0.0           obtained = jtheta1 2 q'       assertEqual ""         (approx 10 obtained)