BigMath.log(x, prec) Class Public methods Computes the natural logarithm of x to the specified number of digits of precision. If x is zero or negative, raises Math::DomainError. If x is positive infinity, returns Infinity. If x is NaN, returns NaN.
E(prec) Instance Public methods Computes e (the base of natural logarithms) to the specified number of digits of precision.
PI(prec) Instance Public methods Computes the value of pi to the specified number of digits of precision.
atan(x, prec) Instance Public methods Computes the arctangent of x to the specified number of digits of precision. If x is NaN, returns NaN.
cos(x, prec) Instance Public methods Computes the cosine of x to the specified number of digits of precision. If x is infinite or NaN, returns NaN.
sin(x, prec) Instance Public methods Computes the sine of x to the specified number of digits of precision. If x is infinite or NaN, returns NaN.
sqrt(x,prec) Instance Public methods Computes the square root of x to the specified number of digits of precision. BigDecimal.new('2').sqrt(16).to_s -> "0.14142135623730950488016887242096975E1"
big % other â Numeric Instance Public methods Returns big modulo other. See Numeric#divmod for more information.
big & numeric â integer Instance Public methods Performs bitwise and between big and numeric.
big * other â Numeric Instance Public methods Multiplies big and other, returning the result.
Page 96 of 11844