Class | Complex |
In: |
lib/complex.rb
lib/mathn.rb |
Parent: | Numeric |
The complex number class. See complex.rb for an overview.
I | = | Complex(0,1) | I is the imaginary number. It exists at point (0,1) on the complex plane. | |
Unify | = | true |
image | -> | imag |
image | [R] | The imaginary part of a complex number. |
real | [R] | The real part of a complex number. |
ruby-doc.org is a service of James Britt and Neurogami, a Ruby application development company in Phoenix, AZ.
Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.
For more information on the Ruby programming language, visit ruby-lang.org.
Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.