Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/bigdecimal/math.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def sqrt(x, prec)
# and satisfies sin(x) = sign * sin(reduced_x)
# If add_half_pi is true, adds pi/2 to x before reduction.
# Precision of pi is adjusted to ensure reduced_x has the required precision.
private def _sin_periodic_reduction(x, prec, add_half_pi: false)
private_class_method def _sin_periodic_reduction(x, prec, add_half_pi: false) # :nodoc:
return [1, x] if -Math::PI/2 <= x && x <= Math::PI/2 && !add_half_pi

mod_prec = prec + BigDecimal.double_fig
Expand Down
Loading