From 6424dcbdcf7e8c9bf0efdcad2f4717a0f1e2f0cc Mon Sep 17 00:00:00 2001 From: Cedar Grove Maker Studios Date: Mon, 14 Feb 2022 16:26:51 -0800 Subject: [PATCH] address requested changes 3/2 pi rad is equal to -pi/2 rad other changes were caused by file editing issues. sorry about that. --- jepler_udecimal/utrig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jepler_udecimal/utrig.py b/jepler_udecimal/utrig.py index c30b553..ae2cb8d 100644 --- a/jepler_udecimal/utrig.py +++ b/jepler_udecimal/utrig.py @@ -225,14 +225,14 @@ def acos(x, context=None): with localcontext(context) as ctx: ctx.prec += 2 if x == 1: - r = Decimal(0). # 0 radians + r = Decimal(0) # 0 radians elif x == -1: r = Decimal(1).atan() * 4 # pi radians else: r = atan((1 - x * x).sqrt() / x) if r < 0: r += 4 * atan(1) - return r / 1 + return r / 1 for name in __all__: