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

  1. Fork it ( https://github.com/[my-github-username]/math_helper/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request