Project

mathmas

0.0
No commit activity in last 3 years
No release in over 3 years
Symblic Mathmatics library inspired by SymPy and dxdy
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0

Runtime

~> 0.1.1
 Project Readme

Mathmas

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.

Quick Start

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.

Feature

  • Simple Symbolic Equation
  • Beautiful Displaying of numerical formula on IRuby notebook
  • Plotting with Nyaplot

Usage

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

TODO:

  • Differentiating
  • Definite Integrating
  • Undefinite Integrating
  • Optimization problem solver
  • ODE solver

Installation

Add this line to your application's Gemfile:

gem 'mathmas'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mathmas

Contributing

  1. Fork it ( http://github.com//mathmas/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 new Pull Request