Fix precision error in llTan special values.

This commit is contained in:
Sei Lisa 2016-05-21 02:25:05 +02:00
parent 4172f02439
commit 7b70bfe55f
2 changed files with 4 additions and 4 deletions

View file

@ -1606,9 +1606,9 @@ def llTan(f):
if -9223372036854775808.0 <= f < 9223372036854775808.0:
# We only consider the first turn for anomalous results.
if abs(f) == 1.570796251296997:
return math.copysign(13245400.0, f);
return math.copysign(13245402.0, f);
if abs(f) == 1.5707963705062866:
return -math.copysign(22877330.0, f);
return -math.copysign(22877332.0, f);
return F32(math.tan(f))
return f