Sha256: 044e96522ff3d229182828ed2475bd0423329d6977953719e7dabe28e673d8fb
Contents?: true
Size: 386 Bytes
Versions: 1
Compression:
Stored size: 386 Bytes
Contents
require 'mathn' class Numeric # Squares the number def square self * self end # Cube the number def cube self.square * self end # Finds the square root of the number def sqrt Math.sqrt(self) end # Finds the log base e of the number def ln Math::log(self) end # Finds the log base 10 of the number def log Math::log10(self) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
darkhelmet-darkext-0.5.1 | lib/darkext/numeric.rb |