BasicObject
Creates a Complex number. a and b should be Numeric. The result will be a+bi.
a
b
a+bi
# File complex.rb, line 92 def Complex(a, b = 0) if b == 0 and (a.kind_of?(Complex) or defined? Complex::Unify) a else Complex.new( a.real-b.imag, a.imag+b.real ) end end
This page was generated for Ruby 1.8.6
Ruby-doc.org is a service of James Britt and Neurogami, an erratic source of art, music, and technology.
Generated with Ruby-doc Rdoc Generator 0.44.0.