]> Cypherpunks repositories - gostls13.git/commit
math: improve accuracy of Exp2
authorEoghan Sherry <ejsherry@gmail.com>
Mon, 6 Dec 2010 21:24:51 +0000 (16:24 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 6 Dec 2010 21:24:51 +0000 (16:24 -0500)
commitff4e08f60d92862bb086b447ee44d78c618cf7a7
tree34a7d3bd4986345a93c3c7dfb8f2b84109aedf26
parent6eee9ed507a6de8fe93c1d1b8372a8bd85547e6f
math: improve accuracy of Exp2

Note:
* Exp2 doesn't have a special case for very small arguments
* Exp2 hasn't been subject to a proper error analysis

Also:
* add tests for Exp2 with integer argument
* always test Go versions of Exp and Exp2

R=rsc
CC=Charlie Dorian, PeterGo, golang-dev
https://golang.org/cl/3481041
src/pkg/math/Makefile
src/pkg/math/all_test.go
src/pkg/math/exp.go
src/pkg/math/exp2.go
src/pkg/math/exp_port.go [new file with mode: 0644]
src/pkg/math/exp_test.go [new file with mode: 0644]