In [1]:
require 'mathmas'


Out[1]:
Out[1]:
true

In [2]:
include Mathmas


Out[2]:
Object

In [3]:
expr = 1/x


Out[3]:

In [4]:
expr.exec(x: 3)


Out[4]:
(1/3)

In [14]:
expr.exec(x: 1)


Out[14]:
1

In [5]:
f(x) <= 1/x


Out[5]:

In [6]:
f


Out[6]:

In [7]:
f(3)


Out[7]:
(1/3)

In [9]:
f.plot(x: 1..3)


["x"]
Out[9]:

In [11]:
g(x, y) <= (x + y)/(x**3 + y**2)


Out[11]: