Class: Gmath
- Inherits:
-
Object
- Object
- Gmath
- 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 |
.hi ⇒ Object
2 3 4 |
# File 'lib/gmath.rb', line 2 def self.hi puts "Hello world!" end |