| Modifier and Type | Class and Description |
|---|---|
| public static class | RubyMath.
Inner class to help with Γ functions |
| Modifier and Type | Field and Description |
|---|---|
| public static final double[] | |
| public static final double[] | |
| private static int | |
| private static int | |
| public static final double[] | |
| public static final double[] | |
| public static final double[] | |
| private static final double[] | |
| private static double | |
| private static double | |
| private static final double[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static RubyFloat | |
| public static RubyFloat | |
| public static RubyFloat | |
| public static RubyFloat | |
| public static RubyFloat | |
| public static RubyFloat | |
| public static RubyFloat | |
| public static RubyFloat | |
| public static double | |
| public static RubyFloat | |
| public static RubyFloat | |
| public static RubyModule | |
| private static void | |
| public static RubyFloat | |
| public static RubyFloat | |
| public static RubyFloat | |
| public static RubyFloat | |
| public static RubyArray | |
| public static RubyFloat | Returns: Γ(x) for real number xMath module recv, IRubyObject a real number x)Based on Gergő Nemes's Gamma Function approximation formula, we compute approximate value of Gamma function of x. |
| private static double[] | |
| public static RubyFloat | |
| public static RubyFloat | |
| public static RubyFloat | |
| public static RubyArray | Returns: 2-element array [ln(Γ(x)), sgn] for real number x, where sgn is the sign of Γ(x) when exponentiatedMath module recv, IRubyObject a real number x)Based on Gergő Nemes's Gamma Function approximation formula, we compute Log Gamma function for real number x. |
| public static RubyFloat | |
| public static RubyFloat | |
| public static RubyFloat | |
| public static RubyFloat | |
| public static RubyFloat | |
| public static RubyFloat | |
| public static double | |
| public static double | |
| public static RubyFloat | |
| public static RubyFloat | |
| public static RubyFloat | |
| public static RubyFloat | |
| public static RubyFloat |
| ASINH_COEF | back to summary |
|---|---|
| public static final double[] ASINH_COEF | |
| ATANH_COEF | back to summary |
|---|---|
| public static final double[] ATANH_COEF | |
| DBL_MANT_DIG | back to summary |
|---|---|
| private static int DBL_MANT_DIG | |
| DBL_MAX_EXP | back to summary |
|---|---|
| private static int DBL_MAX_EXP | |
| ERFC2_COEF | back to summary |
|---|---|
| public static final double[] ERFC2_COEF | |
| ERFC_COEF | back to summary |
|---|---|
| public static final double[] ERFC_COEF | |
| ERFCC_COEF | back to summary |
|---|---|
| public static final double[] ERFCC_COEF | |
| FACTORIAL | back to summary |
|---|---|
| private static final double[] FACTORIAL | |
| LOG_10_2 | back to summary |
|---|---|
| private static double LOG_10_2 | |
| LOG_E_2 | back to summary |
|---|---|
| private static double LOG_E_2 | |
| NEMES_GAMMA_COEFF | back to summary |
|---|---|
| private static final double[] NEMES_GAMMA_COEFF | |
| RubyMath | back to summary |
|---|---|
| public RubyMath() | |
| acos | back to summary |
|---|---|
public static RubyFloat acos(ThreadContext context, IRubyObject recv, IRubyObject x)
| |
| acosh | back to summary |
|---|---|
public static RubyFloat acosh(ThreadContext context, IRubyObject recv, IRubyObject x)
| |
| asin | back to summary |
|---|---|
public static RubyFloat asin(ThreadContext context, IRubyObject recv, IRubyObject x)
| |
| asinh | back to summary |
|---|---|
public static RubyFloat asinh(ThreadContext context, IRubyObject recv, IRubyObject x)
| |
| atan | back to summary |
|---|---|
public static RubyFloat atan(ThreadContext context, IRubyObject recv, IRubyObject x)
| |
| atan2 | back to summary |
|---|---|
public static RubyFloat atan2(ThreadContext context, IRubyObject recv, IRubyObject x, IRubyObject y)
| |
| atanh | back to summary |
|---|---|
public static RubyFloat atanh(ThreadContext context, IRubyObject recv, IRubyObject x)
| |
| cbrt | back to summary |
|---|---|
public static RubyFloat cbrt(ThreadContext context, IRubyObject recv, IRubyObject x)
| |
| chebylevSerie | back to summary |
|---|---|
| public static double chebylevSerie(double x, double[] coef) | |
| cos | back to summary |
|---|---|
public static RubyFloat cos(ThreadContext context, IRubyObject recv, IRubyObject x)
| |
| cosh | back to summary |
|---|---|
public static RubyFloat cosh(ThreadContext context, IRubyObject recv, IRubyObject x)
| |
| createMathModule | back to summary |
|---|---|
| public static RubyModule createMathModule(ThreadContext context) Create the Math module and add it to the Ruby runtime. | |
| domainCheck | back to summary |
|---|---|
| private static void domainCheck(ThreadContext context, double value, String msg) | |
| erf | back to summary |
|---|---|
public static RubyFloat erf(ThreadContext context, IRubyObject recv, IRubyObject x)
| |
| erfc | back to summary |
|---|---|
public static RubyFloat erfc(ThreadContext context, IRubyObject recv, IRubyObject x)
| |
| exp | back to summary |
|---|---|
public static RubyFloat exp(ThreadContext context, IRubyObject recv, IRubyObject exponent)
| |
| exp | back to summary |
|---|---|
| public static RubyFloat exp(ThreadContext context, IRubyObject exponent) | |
| frexp | back to summary |
|---|---|
public static RubyArray
| |
| gamma | back to summary |
|---|---|
| public static RubyFloat gamma(ThreadContext context, IRubyObject recv, IRubyObject x) Based on Gergő Nemes's Gamma Function approximation formula, we compute approximate value of Gamma function of x.
| |
| get_double_rshift | back to summary |
|---|---|
| private static double[] get_double_rshift(ThreadContext context, IRubyObject x) | |
| hypot | back to summary |
|---|---|
public static RubyFloat hypot(ThreadContext context, IRubyObject recv, IRubyObject x, IRubyObject y)
| |
| hypot19 | back to summary |
|---|---|
| public static RubyFloat hypot19(ThreadContext context, IRubyObject recv, IRubyObject x, IRubyObject y)
Deprecated
| |
| ldexp | back to summary |
|---|---|
public static RubyFloat ldexp(ThreadContext context, IRubyObject recv, IRubyObject mantissa, IRubyObject exponent)
| |
| lgamma | back to summary |
|---|---|
| public static RubyArray Based on Gergő Nemes's Gamma Function approximation formula, we compute Log Gamma function for real number x.
| |
| log | back to summary |
|---|---|
| public static RubyFloat log(ThreadContext context, IRubyObject recv, IRubyObject val) Returns the natural logarithm of x.
| |
| log | back to summary |
|---|---|
| public static RubyFloat log(ThreadContext context, IRubyObject val) | |
| log | back to summary |
|---|---|
public static RubyFloat log(ThreadContext context, IRubyObject recv, IRubyObject val, IRubyObject base)
| |
| log | back to summary |
|---|---|
| public static RubyFloat log(ThreadContext context, IRubyObject recv, IRubyObject... args) | |
| log10 | back to summary |
|---|---|
| public static RubyFloat log10(ThreadContext context, IRubyObject recv, IRubyObject x) Returns the base 10 logarithm of x.
| |
| log2 | back to summary |
|---|---|
| public static RubyFloat log2(ThreadContext context, IRubyObject recv, IRubyObject x) Returns the base 2 logarithm of x.
| |
| nemes_gamma | back to summary |
|---|---|
| public static double nemes_gamma(double x) | |
| sign | back to summary |
|---|---|
| public static double sign(double x, double y) | |
| sin | back to summary |
|---|---|
public static RubyFloat sin(ThreadContext context, IRubyObject recv, IRubyObject x)
| |
| sinh | back to summary |
|---|---|
public static RubyFloat sinh(ThreadContext context, IRubyObject recv, IRubyObject x)
| |
| sqrt | back to summary |
|---|---|
public static RubyFloat sqrt(ThreadContext context, IRubyObject recv, IRubyObject x)
| |
| tan | back to summary |
|---|---|
public static RubyFloat tan(ThreadContext context, IRubyObject recv, IRubyObject x)
| |
| tanh | back to summary |
|---|---|
public static RubyFloat tanh(ThreadContext context, IRubyObject recv, IRubyObject x)
| |
| Modifier and Type | Field and Description |
|---|---|
| public final double | |
| public final double |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| private static int |
| sign | back to summary |
|---|---|
| public final double sign | |
| value | back to summary |
|---|---|
| public final double value | |
| NemesLogGamma | back to summary |
|---|---|
| public NemesLogGamma(double x) | |
| negZero | back to summary |
|---|---|
| private static boolean negZero(final double x) | |
| signum | back to summary |
|---|---|
| private static int signum(final double x, final double int_part) | |