]> Cypherpunks repositories - gostls13.git/commit
math/cmplx: handle special cases
authorBrian Kessler <brian.m.kessler@gmail.com>
Sat, 2 Feb 2019 06:08:45 +0000 (23:08 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 1 May 2020 03:16:37 +0000 (03:16 +0000)
commit4209a9f65a461cfb184548e50ddb62fedd9f9e21
treeb47e198c507fda726a3dbed82624e6904207165d
parentda382a3978d3db2380c7e9a69207545562dfd727
math/cmplx: handle special cases

Implement special case handling and testing to ensure
conformance with the C99 standard annex G.6 Complex arithmetic.

Fixes #29320

Change-Id: Id72eb4c5a35d5a54b4b8690d2f7176ab11028f1b
Reviewed-on: https://go-review.googlesource.com/c/go/+/220689
Reviewed-by: Robert Griesemer <gri@golang.org>
src/math/cmplx/abs.go
src/math/cmplx/asin.go
src/math/cmplx/cmath_test.go
src/math/cmplx/exp.go
src/math/cmplx/log.go
src/math/cmplx/sin.go
src/math/cmplx/sqrt.go
src/math/cmplx/tan.go