org.jruby.util
Class Numeric
java.lang.Object
org.jruby.util.Numeric
public class Numeric
- extends java.lang.Object
|
Field Summary |
static boolean |
CANON
|
|
Method Summary |
static void |
checkInteger(ThreadContext context,
IRubyObject obj)
|
static IRubyObject |
f_abs(ThreadContext context,
IRubyObject x)
f_abs |
static IRubyObject |
f_abs2(ThreadContext context,
IRubyObject x)
f_abs2 |
static IRubyObject |
f_add(ThreadContext context,
IRubyObject x,
IRubyObject y)
f_add |
static IRubyObject |
f_arg(ThreadContext context,
IRubyObject x)
f_arg |
static IRubyObject |
f_cmp(ThreadContext context,
IRubyObject x,
IRubyObject y)
f_cmp |
static IRubyObject |
f_conjugate(ThreadContext context,
IRubyObject x)
f_conjugate |
static IRubyObject |
f_denominator(ThreadContext context,
IRubyObject x)
f_denominator |
static IRubyObject |
f_div(ThreadContext context,
IRubyObject x,
IRubyObject y)
f_div |
static IRubyObject |
f_divmod(ThreadContext context,
IRubyObject x,
IRubyObject y)
f_divmod |
static IRubyObject |
f_equal(ThreadContext context,
IRubyObject x,
IRubyObject y)
f_equal
Note: This may not return a value which is a boolean. |
static IRubyObject |
f_exact_p(ThreadContext context,
IRubyObject x)
f_exact_p |
static IRubyObject |
f_expt(ThreadContext context,
IRubyObject x,
IRubyObject y)
f_expt |
static IRubyObject |
f_floor(ThreadContext context,
IRubyObject x)
f_floor |
static IRubyObject |
f_gcd(ThreadContext context,
IRubyObject x,
IRubyObject y)
f_gcd |
static IRubyObject |
f_gt_p(ThreadContext context,
IRubyObject x,
IRubyObject y)
f_gt_p |
static IRubyObject |
f_idiv(ThreadContext context,
IRubyObject x,
IRubyObject y)
f_idiv |
static IRubyObject |
f_inspect(ThreadContext context,
IRubyObject x)
f_inspect |
static IRubyObject |
f_integer_p(ThreadContext context,
IRubyObject x)
f_integer_p |
static IRubyObject |
f_lcm(ThreadContext context,
IRubyObject x,
IRubyObject y)
f_lcm |
static IRubyObject |
f_lshift(ThreadContext context,
IRubyObject x,
IRubyObject y)
f_lshift |
static IRubyObject |
f_lt_p(ThreadContext context,
IRubyObject x,
IRubyObject y)
f_lt_p |
static IRubyObject |
f_mod(ThreadContext context,
IRubyObject x,
IRubyObject y)
f_mod |
static IRubyObject |
f_mul(ThreadContext context,
IRubyObject x,
IRubyObject y)
f_mul |
static IRubyObject |
f_negate(ThreadContext context,
IRubyObject x)
f_negate |
static boolean |
f_negative_p(ThreadContext context,
IRubyObject x)
f_negative_p |
static IRubyObject |
f_numerator(ThreadContext context,
IRubyObject x)
f_numerator |
static boolean |
f_one_p(ThreadContext context,
IRubyObject x)
f_one_p |
static IRubyObject |
f_polar(ThreadContext context,
IRubyObject x)
f_polar |
static IRubyObject |
f_quo(ThreadContext context,
IRubyObject x,
IRubyObject y)
f_quo |
static IRubyObject |
f_real_p(ThreadContext context,
IRubyObject x)
f_real_p |
static IRubyObject |
f_rshift(ThreadContext context,
IRubyObject x,
IRubyObject y)
f_rshift |
static IRubyObject |
f_sub(ThreadContext context,
IRubyObject x,
IRubyObject y)
f_sub |
static IRubyObject |
f_to_f(ThreadContext context,
IRubyObject x)
f_to_f |
static IRubyObject |
f_to_i(ThreadContext context,
IRubyObject x)
f_to_i |
static IRubyObject |
f_to_r(ThreadContext context,
IRubyObject x)
f_to_r |
static IRubyObject |
f_to_s(ThreadContext context,
IRubyObject x)
f_to_s |
static IRubyObject |
f_truncate(ThreadContext context,
IRubyObject x)
f_truncate |
static IRubyObject |
f_xor(ThreadContext context,
IRubyObject x,
IRubyObject y)
f_xor |
static boolean |
f_zero_p(ThreadContext context,
IRubyObject x)
f_zero_p |
static double |
frexp(double mantissa,
long[] e)
|
static long |
i_gcd(long x,
long y)
i_gcd |
static long |
i_ilog2(ThreadContext context,
IRubyObject x)
|
static IRubyObject |
int_pow(ThreadContext context,
long x,
long y)
|
static boolean |
k_exact_p(IRubyObject x)
|
static boolean |
k_inexact_p(IRubyObject x)
|
static double |
ldexp(double f,
long e)
|
static IRubyObject[] |
nurat_rationalize_internal(ThreadContext context,
IRubyObject[] ary)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CANON
public static final boolean CANON
- See Also:
- Constant Field Values
Numeric
public Numeric()
f_add
public static IRubyObject f_add(ThreadContext context,
IRubyObject x,
IRubyObject y)
- f_add
f_cmp
public static IRubyObject f_cmp(ThreadContext context,
IRubyObject x,
IRubyObject y)
- f_cmp
f_div
public static IRubyObject f_div(ThreadContext context,
IRubyObject x,
IRubyObject y)
- f_div
f_gt_p
public static IRubyObject f_gt_p(ThreadContext context,
IRubyObject x,
IRubyObject y)
- f_gt_p
f_lt_p
public static IRubyObject f_lt_p(ThreadContext context,
IRubyObject x,
IRubyObject y)
- f_lt_p
f_mod
public static IRubyObject f_mod(ThreadContext context,
IRubyObject x,
IRubyObject y)
- f_mod
f_mul
public static IRubyObject f_mul(ThreadContext context,
IRubyObject x,
IRubyObject y)
- f_mul
f_sub
public static IRubyObject f_sub(ThreadContext context,
IRubyObject x,
IRubyObject y)
- f_sub
f_xor
public static IRubyObject f_xor(ThreadContext context,
IRubyObject x,
IRubyObject y)
- f_xor
f_abs
public static IRubyObject f_abs(ThreadContext context,
IRubyObject x)
- f_abs
f_abs2
public static IRubyObject f_abs2(ThreadContext context,
IRubyObject x)
- f_abs2
f_arg
public static IRubyObject f_arg(ThreadContext context,
IRubyObject x)
- f_arg
f_conjugate
public static IRubyObject f_conjugate(ThreadContext context,
IRubyObject x)
- f_conjugate
f_denominator
public static IRubyObject f_denominator(ThreadContext context,
IRubyObject x)
- f_denominator
f_exact_p
public static IRubyObject f_exact_p(ThreadContext context,
IRubyObject x)
- f_exact_p
f_numerator
public static IRubyObject f_numerator(ThreadContext context,
IRubyObject x)
- f_numerator
f_polar
public static IRubyObject f_polar(ThreadContext context,
IRubyObject x)
- f_polar
f_real_p
public static IRubyObject f_real_p(ThreadContext context,
IRubyObject x)
- f_real_p
f_integer_p
public static IRubyObject f_integer_p(ThreadContext context,
IRubyObject x)
- f_integer_p
f_divmod
public static IRubyObject f_divmod(ThreadContext context,
IRubyObject x,
IRubyObject y)
- f_divmod
f_floor
public static IRubyObject f_floor(ThreadContext context,
IRubyObject x)
- f_floor
f_inspect
public static IRubyObject f_inspect(ThreadContext context,
IRubyObject x)
- f_inspect
f_negate
public static IRubyObject f_negate(ThreadContext context,
IRubyObject x)
- f_negate
f_to_f
public static IRubyObject f_to_f(ThreadContext context,
IRubyObject x)
- f_to_f
f_to_i
public static IRubyObject f_to_i(ThreadContext context,
IRubyObject x)
- f_to_i
f_to_r
public static IRubyObject f_to_r(ThreadContext context,
IRubyObject x)
- f_to_r
f_to_s
public static IRubyObject f_to_s(ThreadContext context,
IRubyObject x)
- f_to_s
f_truncate
public static IRubyObject f_truncate(ThreadContext context,
IRubyObject x)
- f_truncate
f_equal
public static IRubyObject f_equal(ThreadContext context,
IRubyObject x,
IRubyObject y)
- f_equal
Note: This may not return a value which is a boolean. other.== can
return non-boolean (which unless it is nil it will be isTrue()).
f_expt
public static IRubyObject f_expt(ThreadContext context,
IRubyObject x,
IRubyObject y)
- f_expt
f_idiv
public static IRubyObject f_idiv(ThreadContext context,
IRubyObject x,
IRubyObject y)
- f_idiv
f_quo
public static IRubyObject f_quo(ThreadContext context,
IRubyObject x,
IRubyObject y)
- f_quo
f_rshift
public static IRubyObject f_rshift(ThreadContext context,
IRubyObject x,
IRubyObject y)
- f_rshift
f_lshift
public static IRubyObject f_lshift(ThreadContext context,
IRubyObject x,
IRubyObject y)
- f_lshift
f_negative_p
public static boolean f_negative_p(ThreadContext context,
IRubyObject x)
- f_negative_p
f_zero_p
public static boolean f_zero_p(ThreadContext context,
IRubyObject x)
- f_zero_p
f_one_p
public static boolean f_one_p(ThreadContext context,
IRubyObject x)
- f_one_p
i_gcd
public static long i_gcd(long x,
long y)
- i_gcd
f_gcd
public static IRubyObject f_gcd(ThreadContext context,
IRubyObject x,
IRubyObject y)
- f_gcd
f_lcm
public static IRubyObject f_lcm(ThreadContext context,
IRubyObject x,
IRubyObject y)
- f_lcm
i_ilog2
public static long i_ilog2(ThreadContext context,
IRubyObject x)
ldexp
public static double ldexp(double f,
long e)
frexp
public static double frexp(double mantissa,
long[] e)
int_pow
public static IRubyObject int_pow(ThreadContext context,
long x,
long y)
k_exact_p
public static boolean k_exact_p(IRubyObject x)
k_inexact_p
public static boolean k_inexact_p(IRubyObject x)
nurat_rationalize_internal
public static IRubyObject[] nurat_rationalize_internal(ThreadContext context,
IRubyObject[] ary)
checkInteger
public static void checkInteger(ThreadContext context,
IRubyObject obj)
Copyright © 2002-2009 JRuby Team. All Rights Reserved.