From ef4d20ad6fde1ca519a19ad60f2c31d86f5b1d98 Mon Sep 17 00:00:00 2001 From: Jun T Date: Sun, 27 Oct 2013 00:41:03 +0900 Subject: 31902: rationalise use of gamma function. Make zsh/mathfunc consistent across systems and use tgamma() where available --- Test/V03mathfunc.ztst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Test') 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 -- cgit 1.4.1