MathRootHelper
MathRootHelper is a simple gem that currently helps you find the 'nth' root of a given number.
Installation
Add this line to your application's Gemfile:
gem 'math_root_helper'
And then execute:
$ bundle
Or install it yourself as:
$ gem install math_root_helper
Usage
MathRootHelper.square_root(4) # returns 2.0
MathRootHelper.cube_root(125) # returns 5.0
MathRootHelper.nth_root(4, 2401) # returns 7.0
Contributing
- Fork it ( https://github.com/[my-github-username]/math_helper/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request