Mathmas is a gem for Symbolic Mathematics inspired by SymPy and dydx. This gem is still an experimental implementation and needs your help. Please contact me if you are interest in contributing it.
The word "Mathmas" comes from "ますます"(Mas-Mas) which means "more and more" in Japanese.
This gem is still on progress. See the notebook to overview the current status.
Run the code below to install Mathmas.
gem install mathmas
Then try example.
cp path_to_gem/examples/Mathmas_develop.ipynb ~
cd ~
iruby notebook #-> then select "Mathmas_develop" on your browser.
- Simple Symbolic Equation
- Beautiful Displaying of numerical formula on IRuby notebook
- Plotting with Nyaplot
require 'mathmas'
include Mathmas
f(x) = x**2
f.plot(x: -1..1) #-> Plot on IRuby notebook
f.diff #-> 2*x # not implemented yet
f.integrate(x: -1..1) # not implemented yet
f.minimize # not implemented yet
- Differentiating
- Definite Integrating
- Undefinite Integrating
- Optimization problem solver
- ODE solver
Add this line to your application's Gemfile:
gem 'mathmas'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mathmas
- Fork it ( http://github.com//mathmas/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 new Pull Request