summaryrefslogtreecommitdiff
path: root/src/lib/math/main.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2008-07-08 17:26:10 -0700
committerRob Pike <r@golang.org>2008-07-08 17:26:10 -0700
commit86dbd84da0ae58a2510345b430ad21f6e8b8b7c4 (patch)
tree4d53e7f7d9c474e4796c90ea6685ccdf4e8ee6ff /src/lib/math/main.go
parent16b495b639f3cf34ae6b32de343649785ceb5a06 (diff)
downloadgo-86dbd84da0ae58a2510345b430ad21f6e8b8b7c4.tar.gz
fix ldexp, frexp, and make math package compile and test correctly
SVN=126423
Diffstat (limited to 'src/lib/math/main.go')
-rw-r--r--src/lib/math/main.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/math/main.go b/src/lib/math/main.go
index e2277d29b..0006151d9 100644
--- a/src/lib/math/main.go
+++ b/src/lib/math/main.go
@@ -61,15 +61,14 @@ main()
ck(exp[i], math.exp(f));
ck(floor[i], math.floor(f));
ck(log[i], math.log(math.fabs(f)));
- math.pow(10, f);
ck(pow[i], math.pow(10, f));
ck(sin[i], math.sin(f));
ck(sinh[i], math.sinh(f));
ck(sqrt[i], math.sqrt(math.fabs(f)));
ck(tan[i], math.tan(f));
ck(tanh[i], math.tanh(f));
-// ck(math.fabs(tanh[i]*math.sqrt(2)),
-// math.hypot(tanh[i], tanh[i]));
+ ck(math.fabs(tanh[i]*math.sqrt(2)),
+ math.hypot(tanh[i], tanh[i]));
}
}