in reply to Inputting Math Functions

Depending on your needs, you might be able to build on Math::Calculus::Expression.