rect

Complex.rect(real[, imag]) â complexComplex.rectangular(real[, imag]) â complex Class Public methods Returns a complex object which denotes the given rectangular form. Complex.rectangular(1, 2) #=> (1+2i)

polar

Complex.polar(abs[, arg]) â complex Class Public methods Returns a complex object which denotes the given polar form. Complex.polar(3, 0) #=> (3.0+0.0i) Complex.polar(3, Math::PI/2) #=> (1.836909530733566e-16+3.0i) Complex.polar(3, Math::PI) #=> (-3.0+3.673819061467132e-16i) Complex.polar(3, -Math::PI/2) #=> (1.836909530733566e-16-3.0i)

json_create

json_create(object) Class Public methods

between?

obj.between?(min, max) â true or false Instance Public methods Returns false if obj <=> min is less than zero or if anObject <=> max is greater than zero, true otherwise. 3.between?(1, 5) #=> true 6.between?(1, 5) #=> false 'cat'.between?('ant', 'dog') #=> true 'gnu'.between?('ant', 'dog') #=> false

&gt;=

obj >= other â true or false Instance Public methods Compares two objects based on the receiver's <=> method, returning true if it returns 0 or 1.

&gt;

obj > other â true or false Instance Public methods Compares two objects based on the receiver's <=> method, returning true if it returns 1.

==

obj == other â true or false Instance Public methods Compares two objects based on the receiver's <=> method, returning true if it returns 0. Also returns true if obj and other are the same object. Even if obj <=> other raised an exception, the exception is ignoread and returns false.

&lt;=

obj Instance Public methods Compares two objects based on the receiver's <=> method, returning true if it returns -1 or 0.

&lt;

obj Instance Public methods Compares two objects based on the receiver's <=> method, returning true if it returns -1.

on_default

on_default(event, token, data) Instance Public methods