• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gonum / mathext / 67
86%

Build:
DEFAULT BRANCH: master
Ran 28 Oct 2016 01:17PM UTC
Jobs 3
Files 4
Run time 1169125min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
67

Pull #42

travis-ci

web-flow
add digamma and associated tests (#22)

* add digamma and associated tests

* add note on behavior for integers between -7 and 0

This implements the digamma function, and the results match with WolframAlpha. To the best of my knowledge there isn't an implementation in go, although someone was looking for it at SO.

I ported the code from http://web.science.mq.edu.au/~mjohnson/code/digamma.c - his page http://web.science.mq.edu.au/~mjohnson/Software.htm indicates that it can be used as long as he is acknowledged.

I figured there was a tricky way to speed up the difference in log gammas in the mvdist student pdf function, and ran across http://www.johndcook.com/blog/2012/07/14/log-gamma-differences/ (he sure pops up a lot), and found that we don't have an implementation of digamma, and for that matter, no golang projects seem to.

An alternative implementation could use the Chebychev approximations in http://www.ams.org/journals/mcom/1961-15-074/S0025-5718-61-99221-3/S0025-5718-61-99221-3.pdf which might be worth investigating.  There remains some question as to whether the -inf response on integers in [-7,0] is appropriate, or if it should panic or NaN.
Pull Request #42:

1764 of 2000 relevant lines covered (88.2%)

1.87 hits per line

Jobs
ID Job ID Ran Files Coverage
1 67.1 18 Jan 2019 10:40AM UTC 0
68.65
Travis Job 67.1
2 67.2 28 Oct 2016 01:17PM UTC 0
88.2
Travis Job 67.2
3 67.3 18 Jan 2019 10:43AM UTC 0
68.65
Travis Job 67.3
Source Files on build 67
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #67
  • Pull Request #42
  • Prev Build on master (#60)
  • Next Build on master (#72)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc