]> Cypherpunks repositories - gostls13.git/commit
math: add functions; update tests and special cases
authorCharles L. Dorian <cldorian@gmail.com>
Tue, 2 Feb 2010 06:21:40 +0000 (22:21 -0800)
committerRuss Cox <rsc@golang.org>
Tue, 2 Feb 2010 06:21:40 +0000 (22:21 -0800)
commita0690b69dad53ebeebc181749ede6d298272d120
treea2cadd7a798e1484801b565e8cef3e6ee3d2df95
parent0bd41e2ff07229e0e4fa1427978f5d62082609c2
math: add functions; update tests and special cases

Added special cases to comments for asin.go and fabs.go.
Added Trunc() to floor.go and floor_386.s.  Fixed formatting
error in hypot_386.s  Added new functions Acosh, Asinh,
Atanh, Copysign, Erf, Erfc, Expm1, and Log1p.  Added
386 FPU version of Fmod.  Added tests, benchmarks, and
precision to expected results in all_test.go.  Edited
makefile so it all compiles.

R=rsc
CC=golang-dev
https://golang.org/cl/195052
18 files changed:
src/pkg/math/Makefile
src/pkg/math/acosh.go [new file with mode: 0644]
src/pkg/math/all_test.go
src/pkg/math/asin.go
src/pkg/math/asinh.go [new file with mode: 0644]
src/pkg/math/atanh.go [new file with mode: 0644]
src/pkg/math/copysign.go [new file with mode: 0644]
src/pkg/math/erf.go [new file with mode: 0644]
src/pkg/math/exp.go
src/pkg/math/expm1.go [new file with mode: 0644]
src/pkg/math/fabs.go
src/pkg/math/floor.go
src/pkg/math/floor_386.s
src/pkg/math/floor_decl.go
src/pkg/math/fmod_386.s [new file with mode: 0644]
src/pkg/math/fmod_decl.go [new file with mode: 0644]
src/pkg/math/hypot_386.s
src/pkg/math/log1p.go [new file with mode: 0644]