Sha256: bb8deda4b00bd3d0df4be05b4b79281377562399cc40d5bb9bc06772dd2d5748
Contents?: true
Size: 134 Bytes
Versions: 2
Compression:
Stored size: 134 Bytes
Contents
require "fibon/version" module Fibon def self.place(a) @x = ((1 / Math::sqrt(5))*(((1+Math::sqrt(5))/2)**(a))).round end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fibon-0.0.3 | lib/fibon.rb |
fibon-0.0.1 | lib/fibon.rb |