]> 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>
Thu, 7 Nov 2019 19:48:30 +0000 (19:48 +0000)
commit68dce4296eba755b6add5e611b7849b99dcb5d75
tree7ecdf639749ae602de15985ddcc6fe45c4d87b23
parent3c47eada3f628cbd8a0f47563e6c9287d91d4765
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: Ieb0527191dd7fdea5b1aecb42b9e23aae3f74260
Reviewed-on: https://go-review.googlesource.com/c/go/+/169501
Run-TryBot: Brian Kessler <brian.m.kessler@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
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