There is no way to mark "variables" in formulas as representing functions (this would be useful for writing recurrence relation solutions or allowing students to use non-standard functions in their answers).
Include "parserFunction.pl", macro
parserFunction(f => "sin(pi^n)+e");