class Gmath
Public Class Methods
aMinusBInSquare(a, b)
click to toggle source
# File lib/gmath.rb, line 10 def self.aMinusBInSquare(a, b) return a*a - 2*a*b + b*b end
aPlusBInSquare(a, b)
click to toggle source
# File lib/gmath.rb, line 6 def self.aPlusBInSquare(a, b) return a*a + 2*a*b + b*b end
hi()
click to toggle source
# File lib/gmath.rb, line 2 def self.hi puts "Hello world!" end