Evaluator is a mathematical expression evaluator for infix notation. It supports variables and functions.
require 'evaluator' puts Evaluator('1+1') puts Evaluator('sin pi')
See the test cases for more examples.
Daniel Mendler