Class: Complex

Inherits:
Object show all
Defined in:
(unknown)

Class Method Summary collapse

Class Method Details

.imaginary_z(z) ⇒ Complex

Calculates “i z” so inverts the real and imaginary maps of z.

Examples:

Complex.imaginary_z(1+2i) #=> (-2+1i)
-Complex.imaginary_z(1+2i) #=> (2-1i)

Parameters:

  • z (Numeric)

    Numerical argument

Returns:



34
35
36
37
38
# File 'ext/bigdecimal/math_r/overrides.c', line 34

static VALUE
__impl_nucomp_s_imaginary_z(VALUE self, VALUE z)
{
	return rb_ImaginaryZ(z, SIGN_PLUS);
}