fparser provides a Formula class that parses strings containing mathematical formulas (e.g. x*sin(PI*x/2)) into an evaluationable object. One can then provide values for all unknown variables / ...
Add a description, image, and links to the javascript-formula-parser topic page so that developers can more easily learn about it.