We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f107735 commit d93b542Copy full SHA for d93b542
lib/bigdecimal/math.rb
@@ -51,7 +51,7 @@ def sqrt(x, prec)
51
# and satisfies sin(x) = sign * sin(reduced_x)
52
# If add_half_pi is true, adds pi/2 to x before reduction.
53
# Precision of pi is adjusted to ensure reduced_x has the required precision.
54
- 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:
55
return [1, x] if -Math::PI/2 <= x && x <= Math::PI/2 && !add_half_pi
56
57
mod_prec = prec + BigDecimal.double_fig
0 commit comments