diff options
| author | Charles L. Dorian <cldorian@gmail.com> | 2012-06-24 19:39:07 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2012-06-24 19:39:07 -0400 |
| commit | 35c3afdb62809e40422b5590d807418697ba8660 (patch) | |
| tree | 23782d83663a7fb25ab822e1bb20c4c48d21e6ac /src/pkg/runtime/hashmap.c | |
| parent | d36c095da920cffef16da7f37ce725f9a07f6ae0 (diff) | |
| download | go-35c3afdb62809e40422b5590d807418697ba8660.tar.xz | |
math: improve Atan, Asin and Acos accuracy
pkg/math/all_test.go tests Atan (and therefore Asin and Acos) to a
relative accuracy of 4e-16, but the test vector misses values where
the old algorithm was in error by more than that. For example:
x newError oldError
0.414215746 1.41e-16 -4.24e-16
0.414216076 1.41e-16 -4.24e-16
0.414217632 1.41e-16 -4.24e-16
0.414218770 1.41e-16 -4.24e-16
0.414225466 0 -5.65e-16
0.414226244 1.41e-16 -4.24e-16
0.414228756 0 -5.65e-16
0.414235089 0 -5.65e-16
0.414237070 0 -5.65e-16
R=rsc, golang-dev
CC=golang-dev
https://golang.org/cl/6302093
Diffstat (limited to 'src/pkg/runtime/hashmap.c')
0 files changed, 0 insertions, 0 deletions
