How do I add formulas to my app?

Im trying to create a simple app where users enter in the variables of a formula and the app does the math for them. Like an excel spreadsheet but better looking. Could someone help me out?

formula 1
x = y(z)+a(b*c)-a(d*f)

formula 2
x = y*z
1 person has
this question