module BigMath

Core BigMath methods for BigDecimal (log, exp) are defined here. Other methods (sin, cos, atan) are defined in ‘bigdecimal/math.rb’.

Provides mathematical functions.

Example:

require "bigdecimal/math"

include BigMath

a = BigDecimal((PI(100)/2).to_s)
puts sin(a,100) # => 0.99999999999999999999......e0