summaryrefslogtreecommitdiff
path: root/src/lib/math/exp.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/exp.go
parent16b495b639f3cf34ae6b32de343649785ceb5a06 (diff)
downloadgolang-86dbd84da0ae58a2510345b430ad21f6e8b8b7c4.tar.gz
fix ldexp, frexp, and make math package compile and test correctly
SVN=126423
Diffstat (limited to 'src/lib/math/exp.go')
-rw-r--r--src/lib/math/exp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/math/exp.go b/src/lib/math/exp.go
index b428273e5..dc851a084 100644
--- a/src/lib/math/exp.go
+++ b/src/lib/math/exp.go
@@ -49,5 +49,5 @@ exp(arg double) double
xsq = fract*fract;
temp1 = ((p2*xsq+p1)*xsq+p0)*fract;
temp2 = ((xsq+q2)*xsq+q1)*xsq + q0;
- return sys.ldexp(ent, sqrt2*(temp2+temp1)/(temp2-temp1));
+ return sys.ldexp(sqrt2*(temp2+temp1)/(temp2-temp1), ent);
}