calculator: extend the calculator logic with scientific operators