Parent

Class Index [+]

Quicksearch

Complex

Public Instance Methods

abs() click to toggle source
    # File lib/flt/complex.rb, line 37
37:   def abs
38:     num_class.nil? ? abs! : num_class.context.hypot(real, imag)
39:   end
Also aliased as: abs!
abs!() click to toggle source
Alias for: abs
polar() click to toggle source
    # File lib/flt/complex.rb, line 42
42:   def polar
43:     num_class.nil? ? polar! : [num_class.context.hypot(real, imag), num_class.context.atan2(imag, real)]
44:   end
Also aliased as: polar!
polar!() click to toggle source
Alias for: polar

Private Instance Methods

num_class() click to toggle source

alias power! ** def **(other)

  if classnum_class_num.nil? && other.class_num.nil?
    self.power!(other)
  else
    num_class.ccontext.power(self, other)
  end

end

    # File lib/flt/complex.rb, line 57
57:   def num_class
58:     real.kind_of?(Flt::Num) ? real.class : imag.kind_of?(Flt::Num) ? imag.class : nil
59:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.