Skip to content

Commit 1cd7277

Browse files
committed
Remove workaround for removing extra digits from sqrt result in log calculation
1 parent 1a3a2e8 commit 1cd7277

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/bigdecimal.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,6 @@ def self.log(x, prec)
261261

262262
sqrt_steps.times do
263263
x = x.sqrt(sqrt_prec)
264-
265-
# Workaround for https://github.com/ruby/bigdecimal/issues/354
266-
x = x.mult(1, sqrt_prec + BigDecimal.double_fig)
267264
end
268265

269266
# Taylor series for log(x) around 1

0 commit comments

Comments
 (0)