Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more
Object
# File complex.rb, line 418 def denominator() 1 end
# File complex.rb, line 420 def gcd(other) min = self.abs max = other.abs while min > 0 tmp = min min = max % min max = tmp end max end
# File complex.rb, line 431 def lcm(other) if self.zero? or other.zero? 0 else (self.div(self.gcd(other)) * other).abs end end
# File complex.rb, line 417 def numerator() self end
This page was generated for Ruby 1.8.7
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.