We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea6e2e5 commit 1817253Copy full SHA for 1817253
1 file changed
jepler_udecimal/utrig.py
@@ -103,7 +103,7 @@ def atan(x, context=None):
103
t = Decimal(1)
104
i = 3
105
106
- while t.logb() > -ctx.prec:
+ while t and t.logb() > -ctx.prec:
107
u *= f
108
t = u / i
109
i += 2
@@ -134,7 +134,7 @@ def sin(x, context=None):
134
r = a = x
135
q = -x * x
136
137
- while a.logb() > -ctx.prec:
+ while a and a.logb() > -ctx.prec:
138
a *= q / (i * (i - 1))
139
r += a
140
0 commit comments