From e051d4933818edc42cb491d807090c7827a92ce6 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Wed, 18 Oct 2017 02:42:58 +0200 Subject: [PATCH] llAsin and llAcos return indet for indet input. --- lslopt/lslbasefuncs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lslopt/lslbasefuncs.py b/lslopt/lslbasefuncs.py index de56892..80e83db 100644 --- a/lslopt/lslbasefuncs.py +++ b/lslopt/lslbasefuncs.py @@ -867,7 +867,7 @@ def llAbs(i): def llAcos(f): f = ff(f) try: - return F32(math.acos(f)) + return F32(math.acos(f)) if not math.isnan(f) else f except ValueError: return NaN @@ -879,7 +879,7 @@ def llAngleBetween(r1, r2): def llAsin(f): f = ff(f) try: - return F32(math.asin(f)) + return F32(math.asin(f)) if not math.isnan(f) else f except ValueError: return NaN