go/src/math/cmplx
Mohit Agarwal 5a9549260d math/cmplx: prevent infinite loop in tanSeries
The condition to determine if any further iterations are needed is
evaluated to false in case it encounters a NaN. Instead, flip the
condition to keep looping until the factor is greater than the machine
roundoff error.

Updates #17577

Change-Id: I058abe73fcd49d3ae4e2f7b33020437cc8f290c3
Reviewed-on: https://go-review.googlesource.com/31952
Reviewed-by: Robert Griesemer <gri@golang.org>
2016-10-25 18:32:22 +00:00
..
abs.go
asin.go
cmath_test.go math/cmplx: prevent infinite loop in tanSeries 2016-10-25 18:32:22 +00:00
conj.go
example_test.go
exp.go
isinf.go
isnan.go
log.go
phase.go
polar.go
pow.go
rect.go
sin.go
sqrt.go
tan.go math/cmplx: prevent infinite loop in tanSeries 2016-10-25 18:32:22 +00:00