Method: Complex#rect
- Defined in:
- complex.c
#rect ⇒ Array #rectangular ⇒ Array
Returns an array; [cmp.real, cmp.imag].
Complex(1, 2).rectangular #=> [1, 2]
1079 1080 1081 1082 1083 1084 |
# File 'complex.c', line 1079
static VALUE
nucomp_rect(VALUE self)
{
get_dat1(self);
return rb_assoc_new(dat->real, dat->imag);
}
|