Class: Gmath

Inherits:
Object
  • Object
show all
Defined in:
lib/gmath.rb

Class Method Summary collapse

Class Method Details

.aMinusBInSquare(a, b) ⇒ Object



10
11
12
# File 'lib/gmath.rb', line 10

def self.aMinusBInSquare(a, b)
  return a*a - 2*a*b + b*b
end

.aPlusBInSquare(a, b) ⇒ Object



6
7
8
# File 'lib/gmath.rb', line 6

def self.aPlusBInSquare(a, b)
  return a*a + 2*a*b + b*b
end

.hiObject



2
3
4
# File 'lib/gmath.rb', line 2

def self.hi
  puts "Hello world!"
end