Ruby
2.0.0p598(2014-11-13revision48408)
|
Go to the source code of this file.
Macros | |
#define | NDEBUG |
#define | ZERO INT2FIX(0) |
#define | ONE INT2FIX(1) |
#define | TWO INT2FIX(2) |
#define | f_boolcast(x) ((x) ? Qtrue : Qfalse) |
#define | binop(n, op) |
#define | fun1(n) |
#define | fun2(n) |
#define | math1(n) |
#define | math2(n) |
#define | PRESERVE_SIGNEDZERO |
#define | f_positive_p(x) (!f_negative_p(x)) |
#define | f_nonzero_p(x) (!f_zero_p(x)) |
#define | k_exact_p(x) (!k_float_p(x)) |
#define | k_inexact_p(x) k_float_p(x) |
#define | k_exact_zero_p(x) (k_exact_p(x) && f_zero_p(x)) |
#define | k_exact_one_p(x) (k_exact_p(x) && f_one_p(x)) |
#define | get_dat1(x) |
#define | get_dat2(x, y) |
#define | imp1(n) |
#define | imp2(n) |
#define | m_hypot(x, y) m_hypot_bang((x),(y)) |
#define | rb_raise_zerodiv() rb_raise(rb_eZeroDivError, "divided by 0") |
#define | nucomp_quo nucomp_div |
#define | id_PI rb_intern("PI") |
#define | rb_intern(str) rb_intern_const(str) |
Variables | |
VALUE | rb_cComplex |
static ID | id_abs |
static ID | id_abs2 |
static ID | id_arg |
static ID | id_cmp |
static ID | id_conj |
static ID | id_convert |
static ID | id_denominator |
static ID | id_divmod |
static ID | id_eqeq_p |
static ID | id_expt |
static ID | id_fdiv |
static ID | id_floor |
static ID | id_idiv |
static ID | id_imag |
static ID | id_inspect |
static ID | id_negate |
static ID | id_numerator |
static ID | id_quo |
static ID | id_real |
static ID | id_real_p |
static ID | id_to_f |
static ID | id_to_i |
static ID | id_to_r |
static ID | id_to_s |
static ID | id_i_real |
static ID | id_i_imag |
#define binop | ( | n, | |
op | |||
) |
Definition at line 27 of file complex.c.
Referenced by f_eqeq_p(), f_gt_p(), f_lt_p(), f_negative_p(), f_one_p(), f_signbit(), f_tpositive_p(), f_zero_p(), nucomp_eqeq_p(), and nucomp_eql_p().
#define f_nonzero_p | ( | x | ) | (!f_zero_p(x)) |
Definition at line 228 of file complex.c.
Referenced by nucomp_rationalize(), nucomp_to_f(), nucomp_to_i(), and nucomp_to_r().
#define f_positive_p | ( | x | ) | (!f_negative_p(x)) |
Definition at line 208 of file complex.c.
Referenced by numeric_arg().
#define get_dat1 | ( | x | ) |
Definition at line 304 of file complex.c.
Referenced by f_addsub(), f_divide(), f_format(), m_cos(), m_sin(), nucomp_abs(), nucomp_abs2(), nucomp_arg(), nucomp_conj(), nucomp_denominator(), nucomp_eqeq_p(), nucomp_expt(), nucomp_hash(), nucomp_imag(), nucomp_loader(), nucomp_marshal_dump(), nucomp_mul(), nucomp_negate(), nucomp_numerator(), nucomp_rationalize(), nucomp_real(), nucomp_rect(), nucomp_s_canonicalize_internal(), nucomp_s_convert(), nucomp_to_f(), nucomp_to_i(), and nucomp_to_r().
#define get_dat2 | ( | x, | |
y | |||
) |
Definition at line 308 of file complex.c.
Referenced by f_addsub(), f_divide(), nucomp_eqeq_p(), nucomp_eql_p(), nucomp_mul(), and nucomp_s_canonicalize_internal().
#define id_PI rb_intern("PI") |
Definition at line 2007 of file complex.c.
Referenced by float_arg(), and numeric_arg().
Definition at line 301 of file complex.c.
Referenced by nucomp_expt(), nucomp_s_canonicalize_internal(), and nucomp_s_convert().
#define k_inexact_p | ( | x | ) | k_float_p(x) |
Definition at line 299 of file complex.c.
Referenced by nucomp_rationalize(), nucomp_to_f(), nucomp_to_i(), and nucomp_to_r().
#define m_hypot | ( | x, | |
y | |||
) | m_hypot_bang((x),(y)) |
Definition at line 535 of file complex.c.
Referenced by nucomp_abs().
#define nucomp_quo nucomp_div |
Definition at line 858 of file complex.c.
Referenced by Init_Complex().
#define ONE INT2FIX(1) |
Definition at line 16 of file complex.c.
Referenced by f_divide(), f_one_p(), f_reciprocal(), Init_Complex(), nucomp_expt(), and nucomp_s_convert().
#define rb_intern | ( | str | ) | rb_intern_const(str) |
#define rb_raise_zerodiv | ( | ) | rb_raise(rb_eZeroDivError, "divided by 0") |
#define TWO INT2FIX(2) |
Definition at line 17 of file complex.c.
Referenced by nucomp_expt().
#define ZERO INT2FIX(0) |
Definition at line 15 of file complex.c.
Referenced by f_complex_new1(), f_complex_new_bang1(), f_imul(), f_lcm(), f_mul(), f_negative_p(), f_round_common(), f_zero_p(), Init_Complex(), nucomp_expt(), nucomp_s_alloc(), nucomp_s_canonicalize_internal(), nucomp_s_convert(), nucomp_s_new(), nucomp_s_polar(), nurat_cmp(), nurat_expt(), nurat_rationalize_internal(), nurat_s_alloc(), nurat_s_canonicalize_internal(), nurat_s_canonicalize_internal_no_reduce(), read_comp(), read_digits(), and read_num().
Definition at line 67 of file complex.c.
References FIX2LONG, FIXNUM_P, and rb_funcall().
Referenced by f_divide(), nucomp_abs2(), nucomp_add(), nucomp_expt(), nucomp_mul(), nucomp_s_canonicalize_internal(), and nucomp_s_convert().
Definition at line 690 of file complex.c.
References CLASS_OF, f_complex_new2(), func, get_dat1, get_dat2, k_complex_p(), k_numeric_p(), and rb_num_coerce_bin().
Referenced by nucomp_add(), and nucomp_sub().
Definition at line 465 of file complex.c.
References assert, k_complex_p(), nucomp_s_canonicalize_internal(), and ZERO.
Definition at line 472 of file complex.c.
References assert, k_complex_p(), and nucomp_s_canonicalize_internal().
Referenced by f_addsub(), f_divide(), m_cos(), m_sin(), nucomp_conj(), nucomp_mul(), nucomp_negate(), and nucomp_numerator().
Definition at line 355 of file complex.c.
References assert, k_complex_p(), nucomp_s_new_internal(), and ZERO.
Referenced by nucomp_coerce(), and nucomp_expt().
Definition at line 362 of file complex.c.
References assert, k_complex_p(), and nucomp_s_new_internal().
Referenced by Init_Complex(), and nucomp_s_convert().
Definition at line 602 of file complex.c.
References assert, f_mul(), k_complex_p(), m_cos(), m_sin(), and nucomp_s_canonicalize_internal().
Referenced by nucomp_expt(), nucomp_s_polar(), and rb_complex_polar().
Definition at line 93 of file complex.c.
References FIX2LONG, FIXNUM_P, and rb_funcall().
Referenced by nucomp_numerator().
Definition at line 786 of file complex.c.
References CLASS_OF, f_abs, f_add(), f_complex_new2(), f_gt_p(), f_mul(), f_negate, f_sub(), func, get_dat1, get_dat2, k_complex_p(), k_float_p(), k_numeric_p(), n, ONE, r, and rb_num_coerce_bin().
Referenced by nucomp_div(), and nucomp_fdiv().
Definition at line 188 of file complex.c.
References f_boolcast, FIX2LONG, FIXNUM_P, id_eqeq_p, and rb_funcall().
Referenced by nucomp_eqeq_p(), and nucomp_eql_p().
Definition at line 1261 of file complex.c.
References f_abs, f_tpositive_p(), func, get_dat1, rb_isdigit(), rb_str_cat2(), rb_str_concat(), RSTRING_LEN, RSTRING_PTR, and s.
Referenced by nucomp_inspect(), and nucomp_to_s().
Definition at line 101 of file complex.c.
References f_boolcast, FIX2LONG, FIXNUM_P, and rb_funcall().
Referenced by f_divide(), and nucomp_expt().
Definition at line 251 of file complex.c.
References rb_obj_is_kind_of().
Referenced by k_bignum_p(), k_complex_p(), k_fixnum_p(), k_float_p(), k_integer_p(), k_numeric_p(), and k_rational_p().
Definition at line 109 of file complex.c.
References f_boolcast, FIX2LONG, FIXNUM_P, and rb_funcall().
Definition at line 119 of file complex.c.
References FIX2LONG, FIXNUM_P, ix, rb_funcall(), RB_TYPE_P, T_BIGNUM, and ZERO.
Referenced by f_complex_polar(), f_divide(), m_cos(), m_sin(), nucomp_abs2(), nucomp_expt(), nucomp_mul(), nucomp_numerator(), nucomp_s_convert(), and numeric_abs2().
Definition at line 201 of file complex.c.
References f_boolcast, FIX2LONG, FIXNUM_P, rb_funcall(), and ZERO.
Referenced by f_signbit().
Definition at line 231 of file complex.c.
References f_boolcast, FIX2LONG, FIXNUM_P, id_eqeq_p, ONE, Qfalse, rb_funcall(), RRATIONAL, T_BIGNUM, T_FIXNUM, T_RATIONAL, and TYPE.
Referenced by nucomp_expt().
Definition at line 1239 of file complex.c.
References f, f_boolcast, f_negative_p(), isnan, RFLOAT_VALUE, signbit(), T_FLOAT, and TYPE.
Referenced by f_tpositive_p().
Definition at line 145 of file complex.c.
References FIX2LONG, FIXNUM_P, and rb_funcall().
Referenced by f_divide(), nucomp_expt(), nucomp_mul(), nucomp_s_canonicalize_internal(), and nucomp_sub().
Definition at line 175 of file complex.c.
References DBL2NUM, id_to_f, rb_funcall(), rb_str_to_dbl(), RB_TYPE_P, and T_STRING.
Referenced by nucomp_abs(), and nucomp_to_f().
Definition at line 168 of file complex.c.
References id_to_i, rb_funcall(), rb_str_to_inum(), RB_TYPE_P, and T_STRING.
Referenced by nucomp_to_i().
Definition at line 1255 of file complex.c.
References f_boolcast, and f_signbit().
Referenced by f_format(), and float_arg().
Definition at line 211 of file complex.c.
References f_boolcast, FIX2LONG, FIXNUM_P, id_eqeq_p, Qfalse, rb_funcall(), RRATIONAL, T_BIGNUM, T_FIXNUM, T_RATIONAL, TYPE, and ZERO.
Referenced by nucomp_abs(), nucomp_eqeq_p(), and nucomp_s_canonicalize_internal().
Definition at line 2071 of file complex.c.
References f_tpositive_p(), id_PI, INT2FIX, isnan, rb_const_get(), rb_mMath, and RFLOAT_VALUE.
Referenced by Init_Complex().
Definition at line 2113 of file complex.c.
References assert, CLASS_OF, f_complex_new_bang2(), float_arg(), id_abs, id_abs2, id_arg, id_cmp, id_conj, id_convert, id_denominator, id_divmod, id_eqeq_p, id_expt, id_fdiv, id_floor, id_i_imag, id_i_real, id_idiv, id_imag, id_inspect, id_negate, id_numerator, id_quo, id_real, id_real_p, id_to_f, id_to_i, id_to_r, id_to_s, nilclass_to_c(), nucomp_abs(), nucomp_abs2(), nucomp_add(), nucomp_arg(), nucomp_coerce(), nucomp_conj(), nucomp_denominator(), nucomp_div(), nucomp_dumper(), nucomp_eqeq_p(), nucomp_eql_p(), nucomp_expt(), nucomp_f_complex(), nucomp_false(), nucomp_fdiv(), nucomp_hash(), nucomp_imag(), nucomp_inspect(), nucomp_loader(), nucomp_marshal_dump(), nucomp_marshal_load(), nucomp_mul(), nucomp_negate(), nucomp_numerator(), nucomp_polar(), nucomp_quo, nucomp_rationalize(), nucomp_real(), nucomp_rect(), nucomp_s_alloc(), nucomp_s_convert(), nucomp_s_new(), nucomp_s_polar(), nucomp_sub(), nucomp_to_c(), nucomp_to_f(), nucomp_to_i(), nucomp_to_r(), nucomp_to_s(), numeric_abs2(), numeric_arg(), numeric_conj(), numeric_imag(), numeric_polar(), numeric_real(), numeric_rect(), numeric_to_c(), ONE, rb_cComplex, rb_cFloat, rb_cNilClass, rb_cNumeric, rb_cObject, rb_cString, rb_define_alloc_func(), rb_define_class(), rb_define_class_under(), rb_define_const(), rb_define_global_function(), rb_define_method(), rb_define_private_method(), rb_define_singleton_method(), rb_intern, rb_marshal_define_compat(), rb_undef_method(), string_to_c(), and ZERO.
Definition at line 1560 of file complex.c.
Referenced by read_comp(), and read_digits().
Definition at line 1672 of file complex.c.
Referenced by read_comp().
Definition at line 1597 of file complex.c.
Referenced by read_num().
Definition at line 1540 of file complex.c.
Referenced by read_comp(), and read_sign().
Definition at line 275 of file complex.c.
References f_kind_of_p(), and rb_cBignum.
Referenced by nucomp_expt().
Definition at line 293 of file complex.c.
References f_kind_of_p(), and rb_cComplex.
Referenced by f_addsub(), f_complex_new1(), f_complex_new2(), f_complex_new_bang1(), f_complex_new_bang2(), f_complex_polar(), f_divide(), nucomp_eqeq_p(), nucomp_eql_p(), nucomp_expt(), and nucomp_mul().
Definition at line 269 of file complex.c.
References f_kind_of_p(), and rb_cFixnum.
Referenced by nucomp_expt().
Definition at line 281 of file complex.c.
References f_kind_of_p(), and rb_cFloat.
Referenced by f_divide(), and nucomp_abs().
Definition at line 263 of file complex.c.
References f_kind_of_p(), and rb_cInteger.
Definition at line 257 of file complex.c.
References f_kind_of_p(), and rb_cNumeric.
Referenced by f_addsub(), f_divide(), nucomp_coerce(), nucomp_eqeq_p(), nucomp_expt(), nucomp_mul(), nucomp_real_check(), and nucomp_s_convert().
Definition at line 287 of file complex.c.
References f_kind_of_p(), and rb_cRational.
Referenced by nucomp_expt().
Definition at line 548 of file complex.c.
References f_complex_new2(), f_mul(), f_negate, get_dat1, and rb_cComplex.
Referenced by f_complex_polar().
Definition at line 563 of file complex.c.
References f_complex_new2(), f_mul(), get_dat1, and rb_cComplex.
Referenced by f_complex_polar().
Definition at line 1520 of file complex.c.
References INT2FIX, and rb_complex_new1.
Referenced by Init_Complex().
Definition at line 1022 of file complex.c.
References a, f_abs, f_to_f(), f_zero_p(), get_dat1, k_float_p(), and m_hypot.
Referenced by Init_Complex().
Definition at line 725 of file complex.c.
References f_add(), and f_addsub().
Referenced by Init_Complex().
Definition at line 999 of file complex.c.
References CLASS_OF, f_complex_new_bang1(), k_numeric_p(), Qnil, rb_assoc_new(), rb_eTypeError, rb_obj_classname(), rb_raise(), RB_TYPE_P, and T_COMPLEX.
Referenced by Init_Complex().
Definition at line 1115 of file complex.c.
References CLASS_OF, f_complex_new2(), f_negate, and get_dat1.
Referenced by Init_Complex().
Definition at line 1168 of file complex.c.
References f_denominator, get_dat1, and rb_lcm().
Referenced by Init_Complex().
Definition at line 853 of file complex.c.
References f_divide(), f_quo, and id_quo.
Referenced by Init_Complex().
Definition at line 1324 of file complex.c.
Referenced by Init_Complex().
Definition at line 981 of file complex.c.
References f_boolcast, f_eqeq_p(), f_zero_p(), get_dat1, get_dat2, k_complex_p(), and k_numeric_p().
Referenced by Init_Complex().
Definition at line 1225 of file complex.c.
References CLASS_OF, f_boolcast, f_eqeq_p(), get_dat2, k_complex_p(), and Qfalse.
Referenced by Init_Complex().
Definition at line 890 of file complex.c.
References CLASS_OF, f_abs, f_add(), f_complex_new_bang1(), f_complex_polar(), f_denominator, f_expt, f_gt_p(), f_mul(), f_negate, f_numerator, f_one_p(), f_reciprocal(), f_sub(), FIX2LONG, get_dat1, id_expt, k_bignum_p(), k_complex_p(), k_exact_zero_p, k_fixnum_p(), k_numeric_p(), k_rational_p(), m_log_bang(), n, nucomp_s_new_internal(), ONE, q, r, rb_num_coerce_bin(), rb_warn(), TWO, and ZERO.
Referenced by Init_Complex().
Definition at line 510 of file complex.c.
References id_convert, rb_cComplex, and rb_funcall2().
Referenced by Init_Complex().
Definition at line 869 of file complex.c.
References f_divide(), and id_fdiv.
Referenced by Init_Complex().
Definition at line 1209 of file complex.c.
References get_dat1, LONG2FIX, n, NUM2LONG, rb_hash(), rb_memhash(), and v.
Referenced by Init_Complex().
Definition at line 1311 of file complex.c.
References f_format(), f_inspect, rb_str_cat2(), rb_str_concat(), rb_usascii_str_new2, and s.
Referenced by Init_Complex().
Definition at line 1331 of file complex.c.
References get_dat1, id_i_imag, id_i_real, and rb_ivar_get().
Referenced by Init_Complex().
Definition at line 1343 of file complex.c.
References a, get_dat1, rb_assoc_new(), and rb_copy_generic_ivar().
Referenced by Init_Complex().
Definition at line 1355 of file complex.c.
References Check_Type, id_i_imag, id_i_real, RARRAY_LEN, RARRAY_PTR(), rb_eArgError, rb_ivar_set(), rb_raise(), and T_ARRAY.
Referenced by Init_Complex().
Definition at line 761 of file complex.c.
References CLASS_OF, f_add(), f_complex_new2(), f_mul(), f_sub(), get_dat1, get_dat2, k_complex_p(), k_numeric_p(), and rb_num_coerce_bin().
Referenced by Init_Complex().
Definition at line 682 of file complex.c.
References CLASS_OF, f_complex_new2(), f_negate, and get_dat1.
Referenced by Init_Complex().
Definition at line 1193 of file complex.c.
References CLASS_OF, f_complex_new2(), f_denominator, f_div(), f_mul(), f_numerator, and get_dat1.
Referenced by Init_Complex().
Definition at line 1100 of file complex.c.
References f_abs, and rb_assoc_new().
Referenced by Init_Complex().
Definition at line 1484 of file complex.c.
References f_nonzero_p, f_to_s, get_dat1, k_inexact_p, NULL, rb_eRangeError, rb_funcall2(), rb_intern, rb_raise(), rb_scan_args(), s, and StringValuePtr.
Referenced by Init_Complex().
Definition at line 384 of file complex.c.
References k_numeric_p(), rb_eTypeError, rb_raise(), T_BIGNUM, T_FIXNUM, T_FLOAT, T_RATIONAL, and TYPE.
Referenced by nucomp_s_new(), and nucomp_s_polar().
Definition at line 1085 of file complex.c.
References get_dat1, and rb_assoc_new().
Referenced by Init_Complex().
Definition at line 325 of file complex.c.
References nucomp_s_new_internal(), and ZERO.
Referenced by Init_Complex().
Definition at line 399 of file complex.c.
References f_add(), f_sub(), f_zero_p(), get_dat1, get_dat2, k_exact_zero_p, nucomp_s_new_internal(), and ZERO.
Referenced by f_complex_new1(), f_complex_new2(), f_complex_polar(), nucomp_s_new(), and rb_complex_new().
Definition at line 1885 of file complex.c.
References f_add(), f_complex_new_bang2(), f_mul(), get_dat1, k_exact_zero_p, k_numeric_p(), NIL_P(), nucomp_s_new(), ONE, rb_backref_get(), rb_backref_set(), rb_cComplex, rb_convert_type(), rb_eTypeError, rb_match_busy(), rb_raise(), rb_scan_args(), string_to_c_strict(), T_BIGNUM, T_COMPLEX, T_FIXNUM, T_FLOAT, T_STRING, TYPE, and ZERO.
Referenced by Init_Complex(), and rb_Complex().
Definition at line 446 of file complex.c.
References nucomp_real_check(), nucomp_s_canonicalize_internal(), rb_scan_args(), and ZERO.
Referenced by Init_Complex(), and nucomp_s_convert().
Definition at line 314 of file complex.c.
References NEWOBJ_OF, obj, and T_COMPLEX.
Referenced by f_complex_new_bang1(), f_complex_new_bang2(), nucomp_expt(), nucomp_s_alloc(), nucomp_s_canonicalize_internal(), and rb_complex_raw().
Definition at line 623 of file complex.c.
References arg, f_complex_polar(), nucomp_real_check(), rb_scan_args(), and ZERO.
Referenced by Init_Complex().
Definition at line 743 of file complex.c.
References f_addsub(), and f_sub().
Referenced by Init_Complex().
Definition at line 1508 of file complex.c.
Referenced by Init_Complex().
Definition at line 1432 of file complex.c.
References f_nonzero_p, f_to_f(), f_to_s, get_dat1, k_inexact_p, rb_eRangeError, rb_raise(), s, and StringValuePtr.
Referenced by Init_Complex().
Definition at line 1408 of file complex.c.
References f_nonzero_p, f_to_i(), f_to_s, get_dat1, k_inexact_p, rb_eRangeError, rb_raise(), s, and StringValuePtr.
Referenced by Init_Complex().
Definition at line 1458 of file complex.c.
References f_nonzero_p, f_to_r, f_to_s, get_dat1, k_inexact_p, rb_eRangeError, rb_raise(), s, and StringValuePtr.
Referenced by Init_Complex().
Definition at line 1293 of file complex.c.
References f_format(), and f_to_s.
Referenced by Init_Complex().
Definition at line 2018 of file complex.c.
References f_positive_p, id_PI, INT2FIX, rb_const_get(), and rb_mMath.
Referenced by Init_Complex().
Definition at line 2057 of file complex.c.
Referenced by Init_Complex().
Definition at line 2044 of file complex.c.
References f_abs, and rb_assoc_new().
Referenced by Init_Complex().
Definition at line 1977 of file complex.c.
Referenced by Init_Complex().
Definition at line 2032 of file complex.c.
References INT2FIX, and rb_assoc_new().
Referenced by Init_Complex().
Definition at line 1532 of file complex.c.
References rb_complex_new1.
Referenced by Init_Complex().
Definition at line 1780 of file complex.c.
References ALLOCV_END, ALLOCV_N, b, buf, read_comp(), ret, skip_ws(), strlen(), and tmp.
Referenced by string_to_c(), and string_to_c_strict().
Definition at line 1388 of file complex.c.
References nucomp_s_convert(), and rb_cComplex.
Referenced by nurat_coerce().
Definition at line 1374 of file complex.c.
References nucomp_s_canonicalize_internal(), and rb_cComplex.
Referenced by num_imaginary().
Definition at line 1380 of file complex.c.
References f_complex_polar(), and rb_cComplex.
Referenced by read_comp().
Definition at line 1368 of file complex.c.
References nucomp_s_new_internal(), and rb_cComplex.
Definition at line 2310 of file rational.c.
References parse_rat(), rb_eFloatDomainError, rb_raise(), RB_TYPE_P, T_FLOAT, and void.
Referenced by str2num().
Definition at line 1691 of file complex.c.
References b, INT2FIX, isdecimal(), isimagunit(), issign(), rb_complex_new2, rb_complex_polar(), read_rat(), read_rat_nos(), read_sign(), st, str2num(), strlen(), and ZERO.
Referenced by parse_comp().
Definition at line 1566 of file complex.c.
References isdecimal(), and s.
Referenced by read_den(), and read_num().
Definition at line 1603 of file complex.c.
References islettere(), read_digits(), read_sign(), and s.
Referenced by read_rat_nos().
Definition at line 1662 of file complex.c.
References read_rat_nos(), and read_sign().
Referenced by read_comp().
Definition at line 1644 of file complex.c.
References read_den(), read_num(), and s.
Referenced by read_comp(), and read_rat().
Definition at line 1546 of file complex.c.
Referenced by read_comp(), read_num(), and read_rat().
Definition at line 1773 of file complex.c.
Referenced by parse_comp().
|
static |
Definition at line 1681 of file complex.c.
References DBL2NUM, rb_cstr_to_dbl(), rb_cstr_to_inum(), rb_cstr_to_rat(), and strchr().
Referenced by read_comp().
Definition at line 1861 of file complex.c.
References parse_comp(), rb_must_asciicompat(), rb_str_modify(), RSTRING_LEN, RSTRING_PTR, s, and void.
Referenced by Init_Complex().
Definition at line 1807 of file complex.c.
References f_inspect, parse_comp(), rb_eArgError, rb_must_asciicompat(), rb_raise(), rb_str_modify(), RSTRING_LEN, RSTRING_PTR, s, and StringValuePtr.
Referenced by nucomp_s_convert().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex().
|
static |
Definition at line 21 of file complex.c.
Referenced by f_cmp(), and Init_Complex().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex(), and nucomp_f_complex().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex().
|
static |
Definition at line 21 of file complex.c.
Referenced by f_eqeq_p(), f_one_p(), f_zero_p(), and Init_Complex().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex(), and nucomp_expt().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex(), and nucomp_fdiv().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex(), nucomp_loader(), and nucomp_marshal_load().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex(), nucomp_loader(), and nucomp_marshal_load().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex(), and nucomp_div().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex().
|
static |
Definition at line 21 of file complex.c.
Referenced by f_to_f(), and Init_Complex().
|
static |
Definition at line 21 of file complex.c.
Referenced by f_to_i(), and Init_Complex().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex().
|
static |
Definition at line 21 of file complex.c.
Referenced by Init_Complex().
VALUE rb_cComplex |
Definition at line 19 of file complex.c.
Referenced by Init_Complex(), k_complex_p(), m_cos(), m_sin(), nucomp_f_complex(), nucomp_s_convert(), rb_Complex(), rb_complex_new(), rb_complex_polar(), and rb_complex_raw().