class Numeric
Golden Sections mathematical methods
Public Instance Methods
golden_section(exponent=1)
click to toggle source
Returns the golden section of a number @param exponent [Numeric] the exponent of the golden mean, defaults to 1
# File lib/project/math.rb, line 7 def golden_section(exponent=1) self/(Golden_Sections::Golden_Mean**exponent) end