In [1]:
require 'mathmas'
Out[1]:
Out[1]:
In [2]:
include Mathmas
Out[2]:
In [3]:
expr = 1/x
Out[3]:
In [4]:
expr.exec(x: 3)
Out[4]:
In [14]:
expr.exec(x: 1)
Out[14]:
In [5]:
f(x) <= 1/x
Out[5]:
In [6]:
f
Out[6]:
In [7]:
f(3)
Out[7]:
In [9]:
f.plot(x: 1..3)
Out[9]:
In [11]:
g(x, y) <= (x + y)/(x**3 + y**2)
Out[11]: