about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorJun T <takimoto-j@kba.biglobe.ne.jp>2013-10-27 00:41:03 +0900
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2013-10-27 00:00:56 +0100
commitef4d20ad6fde1ca519a19ad60f2c31d86f5b1d98 (patch)
treee328dcbb8127ce13408d57af693e1a386b84fb6f /Test
parent7a79f660db07283c25205af38a4a9fd8618db4d5 (diff)
downloadzsh-ef4d20ad6fde1ca519a19ad60f2c31d86f5b1d98.tar.gz
zsh-ef4d20ad6fde1ca519a19ad60f2c31d86f5b1d98.tar.xz
zsh-ef4d20ad6fde1ca519a19ad60f2c31d86f5b1d98.zip
31902: rationalise use of gamma function.
Make zsh/mathfunc consistent across systems and use tgamma() where
available
Diffstat (limited to 'Test')
-rw-r--r--Test/V03mathfunc.ztst6
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