The mathematical constants defined in GSL are provided as Ruby constants
under the module GSL
, as
GSL::M_E
GSL::M_LOG2E
GSL::M_LOG10E
GSL::M_SQRT2
GSL::M_SQRT1_2
GSL::M_SQRT3
GSL::M_PI
GSL::M_PI_2
GSL::M_PI_4
GSL::M_SQRTPI
GSL::M_2_SQRTPI
GSL::M_1_PI
GSL::M_2_PI
GSL::M_LN10
GSL::M_LN2
GSL::M_LNPI
GSL::M_EULER
GSL::POSINF
GSL::NEGINF
GSL::NAN
GSL::isnan(x)
GSL::isnan?(x)
GSL::isinf(x)
GSL::isinf?(x)
GSL::finite(x)
GSL::finite?(x)
GSL::log1p(x)
GSL::expm1(x)
GSL::hypot(x, y)
GSL::acosh(x)
GSL::asinh(x)
GSL::atanh(x)
This function computes the value of arctanh(x).
These functions above can take argument x of Integer, Float, Array, Vector or Matrix.
GSL::ldexp(x)
GSL::frexp(x)
GSL::pow_int(x, n)
GSL::pow_2(x)
GSL::pow_3(x)
GSL::pow_4(x)
GSL::pow_5(x)
GSL::pow_6(x)
GSL::pow_7(x)
GSL::pow_8(x)
GSL::pow_9(x)
GSL::SIGN(x)
GSL::sign(x)
GSL::is_odd(n)
GSL::IS_ODD(n)
GSL::is_odd?(n)
GSL::IS_ODD?(n)
GSL::is_even(n)
GSL::IS_EVEN(n)
GSL::is_even?(n)
GSL::IS_even?(n)
GSL::max(a, b)
GSL::MAX(a, b)
GSL::min(a, b)
GSL::MIN(a, b)
GSL::fcmp(a, b, epsilon = 1e-10)
GSL::equal?(a, b, epsilon = 1e-10)