A Naive Ruby Calculator
Installation
gem install naive_calculator
Usage
-
$ naive_calculator
to run REPL and then enter expressions. -
> x = expression
defines a variable -
> g(x, y) = expression
defines a function -
plot f(x), x from min_x to max_x
plots f(x) between min_x and max_x - To use as a library:
NaiveCalculator::Calculator#evaluate