summaryrefslogtreecommitdiff
path: root/src/math/tgammaf.c
AgeCommit message (Collapse)AuthorLines
2012-12-12math: add a non-dummy tgamma implementationSzabolcs Nagy-11/+1
uses the lanczos approximation method with the usual tweaks. same parameters were selected as in boost and python. (avoides some extra work and special casing found in boost so the precision is not that good: measured error is <5ulp for positive x and <10ulp for negative) an alternative lgamma_r implementation is also given in the same file which is simpler and smaller than the current one, but less precise so it's ifdefed out for now.
2012-03-27math: add dummy tgamma and tgammaf implementationsnsz-0/+16