From b21a641d4c63fce45736b635314e079ae360e5b2 Mon Sep 17 00:00:00 2001 From: dana Date: Sun, 12 Aug 2018 03:20:37 -0500 Subject: 43275: Add log2 to match func --- Test/V03mathfunc.ztst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Test') diff --git a/Test/V03mathfunc.ztst b/Test/V03mathfunc.ztst index d6b4e0987..9a297d69d 100644 --- a/Test/V03mathfunc.ztst +++ b/Test/V03mathfunc.ztst @@ -139,3 +139,9 @@ F:This test fails if your math library doesn't have erand48(). print $g, $l 0:Test Gamma function gamma and lgamma >1.00000, 0.00000 + + float -F 5 a b c + (( a = log2(0.5), b = log2(1.5), c = log2(99) )) + print -r - "$a, $b, $c" +0:log2 +>-1.00000, 0.58496, 6.62936 -- cgit 1.4.1