Writing a quick expression evaluator for science