Commit Graph

28 Commits

Author SHA1 Message Date
Dan Kortschak
9b6dcf36f0 all: fix up missing or malformatted package doc comments 2018-06-07 19:37:48 +09:30
Dan Kortschak
004341e242 mathext: fix test 2018-06-06 07:47:09 +09:30
Leonid Kneller
2fe20b8522 Updated CompleteK and CompleteE.
Updated CompleteK(m) and CompleteE(m) with Fukushima's new refactored formulas.
2018-03-01 04:28:34 +10:30
Leonid Kneller
f9d0eed525 mathext: add associate elliptic integrals B(m),D(m)
* Added an implementation of 2 associate complete elliptic integrals B(m),D(m).
* Added tests for the implemented integrals. B(m) and D(m) can be expressed via K(m) and E(m), but with cancellation problems.
2018-02-21 09:31:35 +10:30
kortschak
12944e05fb all: run gofmt -s 2017-12-15 09:57:09 +10:30
Dan Kortschak
790b7356e7 all: migrate to golang.org/x/exp/rand 2017-11-20 15:20:25 +10:30
Josh Wilson
ffa26cba53 mathext: speed up Digamma for large negative arguments
Before the Digamma function could be quite slow for large negative
arguments because it had to do use the recurrence relation thousands
of times. This avoids that by instead using the reflection formula. It
also adds some explicit checks for special cases (Inf, NaN, poles).
2017-11-17 16:58:03 +10:30
kortschak
fa0c5aa7bc all: use golang.org/x/exp/rand instead of math/rand 2017-11-17 11:52:34 +10:30
kortschak
805531d142 all: change capitalization of gonum in license header 2017-11-02 06:54:08 +10:30
mewmew
7e53ef2fae all: use fixdocs tool to store package documentation in doc.go
Add copyright header to doc.go

Keep original comment style (e.g. line comments and block comments).

Fix doc comments containing multiple line comments.

Remove vanity imports from all files except doc.go.

Fixes #12.

The source code of fixdocs is located at:
https://play.golang.org/p/7RtYLzldsO
2017-08-16 14:26:00 +02:00
mewmew
ac48587c92 Revert "all: use fixdocs tool to store package documentation in doc.go"
This reverts commit b2982a3e50.
2017-08-16 14:21:05 +02:00
mewmew
b2982a3e50 all: use fixdocs tool to store package documentation in doc.go
Add copyright header to doc.go

Keep original comment style (e.g. line comments and block comments).

Fix doc comments containing multiple line comments.
2017-08-16 14:07:36 +02:00
mewmew
5b4711aa15 Revert "all: use fixdocs tool to store package documentation in doc.go"
This reverts commit b0a98102dc.
2017-08-16 14:07:17 +02:00
mewmew
b0a98102dc all: use fixdocs tool to store package documentation in doc.go
Add copyright header to doc.go

Keep original comment style (e.g. line comments and block comments).
2017-08-16 14:02:26 +02:00
mewmew
7eaea7c428 Revert "all: use fixdocs tool to store package documentation in doc.go"
This reverts commit 00292b2d57.
2017-08-16 14:01:36 +02:00
mewmew
00292b2d57 all: use fixdocs tool to store package documentation in doc.go
Add copyright header to doc.go
2017-08-16 13:56:50 +02:00
mewmew
a37fef5a6d Revert "all: use fixdocs tool to store package documentation in doc.go"
This reverts commit 963877e5f5.
2017-08-16 13:54:16 +02:00
mewmew
963877e5f5 all: use fixdocs tool to store package documentation in doc.go 2017-08-16 13:19:00 +02:00
Leonid Kneller
802755713a mathext: add elliptic integrals (Carlson and Legendre). (#98)
* Implemented Carlson's and Legendre's elliptic integrals.

Added Carlson's symmetric elliptic integrals RF and RD. Added Legendre's elliptic integrals of the 1st and 2nd kinds.

* Combined const declarations.

Combined const decls. Used 1 as a seed for the RNG.

* Renamed CarsonRF, CarlsonRD to EllipticRF, EllipticRD.

Renamed CarsonRF, CarlsonRD to EllipticRF, EllipticRD. Updated the docs as per the reviewer's suggestions. Used bit shifts to define 2^-1022.

* Improved the docs.

Improved the docs. Added an ArXiv preprint link.

* Improved doc formatting.

Used two spaces instead of tabs. Removed extra blank lines.

* Improved the docs.

Elaborated on the origins of the RF and RD integrals.

* Multiple fixes as suggested by the reviewer.

Multiple fixes in the docs and code. Added spot checks for several precomputed values of EllipticF and EllipticE.
2017-07-25 22:56:40 -06:00
kortschak
0f349255d4 README: update old repo READMEs 2017-07-10 07:03:44 +09:30
kortschak
a1347c0243 all: fix spelling errors 2017-06-20 16:29:35 +09:30
Leonid Kneller
afee90e311 mathext: add complete elliptic integrals K and E (#74)
This implementation is derived from Toshio Fukushima's paper and Fortran code.
http://dx.doi.org/10.1016/j.cam.2014.12.038
2017-06-20 09:13:40 +09:30
kortschak
6d2a59dbb7 all: run gofmt -s 2017-05-31 16:43:23 +09:30
Brendan Tracey
766d140e92 Add remaining canonical import paths 2017-05-25 21:01:46 -06:00
kortschak
37850ca814 all: add canonical imports 2017-05-25 16:07:18 +09:30
Brendan Tracey
e70111877f all: delete extra travis files 2017-05-23 00:03:46 -06:00
Brendan Tracey
d33397aa65 all: change import paths 2017-05-23 00:03:03 -06:00
Brendan Tracey
43311d7bb5 mathext: imported mathext as a subtree 2017-05-23 00:02:50 -06:00