Skip to content

Commit

Permalink
v0.1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stla committed Oct 18, 2023
1 parent 488560e commit e5e408f
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 14 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog for `jacobi-elliptic`

## 0.1.3.0 - 2023-10-18

Increased lower bound of the version of 'jacobi-theta' dependency.


## 0.1.2.0 - 2023-10-16

Increased lower bound of the version of 'jacobi-theta' dependency.
Expand Down
4 changes: 2 additions & 2 deletions jacobi-elliptic.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: jacobi-elliptic
version: 0.1.2.0
version: 0.1.3.0
synopsis: Neville Theta Functions and Jacobi Elliptic Functions
description: Evaluation of the Neville theta functions and the Jacobi elliptic functions.
homepage: https://github.com/stla/jacobi-elliptic#readme
Expand All @@ -19,7 +19,7 @@ library
exposed-modules: Math.NevilleTheta
, Math.JacobiElliptic
build-depends: base >= 4.7 && < 5
, jacobi-theta >= 0.2.0.0
, jacobi-theta >= 0.2.1.0
, elliptic-integrals >= 0.1.0.0
default-language: Haskell2010
ghc-options: -Wall
Expand Down
8 changes: 4 additions & 4 deletions jacobi-elliptic.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
],
"settings": {
"haskell.serverEnvironment": {
"PATH": "/home/stla/.ghcup/bin:/usr/bin:$PATH"
"PATH": "C:\\ghcup\\bin"
},
"haskell.toolchain": {
"ghc": "9.0.2",
"hls": "1.7.0.0",
"ghc": "9.2.8",
"hls": null,
"cabal": "3.6.2.0",
"stack": "2.9.3"
"stack": "2.11.1"
}
}
}
9 changes: 9 additions & 0 deletions src/Math/JacobiElliptic.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{-|
Module : Math.JacobiElliptic
Description : Jacobi elliptic functions.
Copyright : (c) Stéphane Laurent, 2023
License : BSD3
Maintainer : [email protected]
Provides the Jacobi elliptic functions and the amplitude function.
-}
module Math.JacobiElliptic
( jellip,
jellip',
Expand Down
13 changes: 11 additions & 2 deletions src/Math/NevilleTheta.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{-|
Module : Math.NevilleTheta
Description : Neville theta functions.
Copyright : (c) Stéphane Laurent, 2023
License : BSD3
Maintainer : [email protected]
Provides the theta Neville functions.
-}
module Math.NevilleTheta
( theta_c,
theta_d,
Expand All @@ -11,7 +20,7 @@ module Math.NevilleTheta
import Data.Complex ( Complex(..) )
import Math.EllipticIntegrals ( ellipticF )
import Math.JacobiTheta
( jtheta1, jtheta1Dash, jtheta2, jtheta3, jtheta4 )
( jtheta1, jtheta1Dash0, jtheta2, jtheta3, jtheta4 )


i_ :: Complex Double
Expand Down Expand Up @@ -62,7 +71,7 @@ theta_s ::
-> Complex Double -- ^ q, the nome
-> Complex Double
theta_s z q =
j3sq * jtheta1 z' q / jtheta1Dash 0 q
j3sq * jtheta1 z' q / jtheta1Dash0 q
where
j3 = jtheta3 0 q
j3sq = j3 * j3
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ packages:

extra-deps:
- elliptic-integrals-0.1.0.0
- jacobi-theta-0.2.0.0
- jacobi-theta-0.2.1.0
6 changes: 3 additions & 3 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ packages:
original:
hackage: elliptic-integrals-0.1.0.0
- completed:
hackage: jacobi-theta-0.1.1.0@sha256:7ac0c1f1d4edf8adaf06b625fd63c1a69fd127b1d6248dba62d4858b26c05045,1533
hackage: jacobi-theta-0.2.1.0@sha256:a97a3e57236f9e05d2d12b13ba0d775fb26bb6b70b447bdca0d2639ea8699936,1577
pantry-tree:
sha256: be6eea8149ad479c98e0a1323b68c2072eb86648b6710542ff5a36fdb6d719aa
sha256: f423c8d366a811dbdc369e3e8d936921eb312dc5def22dc0044fac11cc62e798
size: 429
original:
hackage: jacobi-theta-0.1.1.0
hackage: jacobi-theta-0.2.1.0
snapshots:
- completed:
sha256: adbc602422dde10cc330175da7de8609e70afc41449a7e2d6e8b1827aa0e5008
Expand Down
4 changes: 2 additions & 2 deletions tests/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ main = defaultMain $

testCase "amplitude function" $ do
let phi = 1 :+ 1
ell = ellipticF phi 2
obtained = am ell 2
ell = ellipticF phi 0.2
obtained = am ell 0.2
assertApproxEqual "" 14 obtained phi

]

0 comments on commit e5e408f

Please sign in to comment.