A handful of algorithms for estimating antiderivative values.

View the Project on GitHub orzogen/calculose


The Calculose gem implements two methods for estimating the value of an antiderivative over an interval. The gem implements two methods: Simpsons's Method and Euler's Method. This gem was the product of frustration at the monotonous nature of summing integrals, and the unwieldily interfaces and UXs on most graphing calculators.


Add this line to your application's Gemfile:

gem 'calculose'

And then execute:

$ bundle

Or install it yourself as:

$ gem install calculose


Simpson's can be called thusly:

Calculose::Calc.simpson(deltaX, startingX, endingX) do |x| f(x) end

where f(x) is the base function.

Euler's can be called thusly:

Calculose::Calc.euler(deltaX, startingX, startingY, endingX) do |x,y| f(x) end

Note that both x and y are passed to the block by the function.

To do