simon-git: spigot (master): Simon Tatham

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Sun Dec 14 15:30:04 GMT 2014


TL;DR:
  0fdbeaf Fix signs of gamma and lgamma.

Repository:     git://git.tartarus.org/simon/spigot.git
On the web:     http://tartarus.org/~simon-git/gitweb/?p=spigot.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2014-12-14 15:30:04

commit 0fdbeaf00bb127e90eaed270968a98d37342cbeb
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=0fdbeaf00bb127e90eaed270968a98d37342cbeb;hp=d4a903b7430ee7f2ec273455fa67ed038435ff70
Author: Simon Tatham <anakin at pobox.com>
Date:   Sun Dec 14 15:29:04 2014 +0000

    Fix signs of gamma and lgamma.
    
    Previously, lgamma would fail completely if the gamma value it was
    trying to take the log of was negative. Now it returns log(|gamma|),
    and gamma in turn checks the sign before returning exp of that.

 gamma.cpp |   27 ++++++++++++++++++---------
 test.sh   |   12 ++++++++++++
 2 files changed, 30 insertions(+), 9 deletions(-)



More information about the tartarus-commits mailing list