Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/project/math.rb
Overview
Golden Sections mathematical methods
Instance Method Summary collapse
-
#golden_section(exponent = 1) ⇒ Object
Returns the golden section of a number.
Instance Method Details
#golden_section(exponent = 1) ⇒ Object
Returns the golden section of a number
7 8 9 |
# File 'lib/project/math.rb', line 7 def golden_section(exponent=1) self/(Golden_Sections::Golden_Mean**exponent) end |