From 13663ff077939c1c5aeb6cb16afa64d4009978a0 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Sat, 21 May 2016 02:50:55 +0200 Subject: [PATCH] -0x1p63 is not included in the valid range of trig functions. --- lslopt/lslbasefuncs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lslopt/lslbasefuncs.py b/lslopt/lslbasefuncs.py index 22956ce..7fddcef 100644 --- a/lslopt/lslbasefuncs.py +++ b/lslopt/lslbasefuncs.py @@ -931,7 +931,7 @@ def llCos(f): f = ff(f) if math.isinf(f): return Indet - if -9223372036854775808.0 <= f < 9223372036854775808.0: + if -9223372036854775808.0 < f < 9223372036854775808.0: return F32(math.cos(f)) return f @@ -1559,7 +1559,7 @@ def llSin(f): f = ff(f) if math.isinf(f): return Indet - if -9223372036854775808.0 <= f < 9223372036854775808.0: + if -9223372036854775808.0 < f < 9223372036854775808.0: return F32(math.sin(f)) return f @@ -1603,7 +1603,7 @@ def llTan(f): f = ff(f) if math.isinf(f): return Indet - if -9223372036854775808.0 <= f < 9223372036854775808.0: + if -9223372036854775808.0 < f < 9223372036854775808.0: # We only consider the first turn for anomalous results. if abs(f) == 1.570796251296997: return math.copysign(13245402.0, f);