mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-26 16:40:29 +01:00
31902: rationalise use of gamma function.
Make zsh/mathfunc consistent across systems and use tgamma() where available
This commit is contained in:
parent
7a79f660db
commit
ef4d20ad6f
5 changed files with 22 additions and 2 deletions
|
|
@ -136,3 +136,9 @@ F:This test fails if your math library doesn't have erand48().
|
|||
done
|
||||
(( ok ))
|
||||
0:Test random number generator distributions are not grossly broken
|
||||
|
||||
float -F 5 g l
|
||||
(( g = gamma(2), l = lgamma(2) ))
|
||||
print $g, $l
|
||||
0:Test Gamma function gamma and lgamma
|
||||
>1.00000, 0.00000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue