diff options
| author | Jun T <takimoto-j@kba.biglobe.ne.jp> | 2013-10-27 00:41:03 +0900 |
|---|---|---|
| committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2013-10-27 00:00:56 +0100 |
| commit | ef4d20ad6fde1ca519a19ad60f2c31d86f5b1d98 (patch) | |
| tree | e328dcbb8127ce13408d57af693e1a386b84fb6f /Test/V03mathfunc.ztst | |
| parent | 31890 + 31891: Add NEWS for new features since 5.0.2 (diff) | |
| download | zsh-ef4d20ad6fde1ca519a19ad60f2c31d86f5b1d98.tar zsh-ef4d20ad6fde1ca519a19ad60f2c31d86f5b1d98.tar.gz zsh-ef4d20ad6fde1ca519a19ad60f2c31d86f5b1d98.tar.bz2 zsh-ef4d20ad6fde1ca519a19ad60f2c31d86f5b1d98.tar.lz zsh-ef4d20ad6fde1ca519a19ad60f2c31d86f5b1d98.tar.xz zsh-ef4d20ad6fde1ca519a19ad60f2c31d86f5b1d98.tar.zst zsh-ef4d20ad6fde1ca519a19ad60f2c31d86f5b1d98.zip | |
31902: rationalise use of gamma function.
Make zsh/mathfunc consistent across systems and use tgamma() where
available
Diffstat (limited to 'Test/V03mathfunc.ztst')
| -rw-r--r-- | Test/V03mathfunc.ztst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Test/V03mathfunc.ztst b/Test/V03mathfunc.ztst index 069059da4..ab383db43 100644 --- a/Test/V03mathfunc.ztst +++ b/Test/V03mathfunc.ztst @@ -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 |
