home
 
 

 
Formula Interpreter
© Charles Chandler
 
It would be totally cool if QDL could offer a form for the user to fill in, where the values of variables will be defined. On the basis of these values, QDL then calculates the result. This would involve looking up lower-level formulas, and adding them to the calculation.
 
It would also be cool if formula pages could be included in PHP pages, where the variables in the formula would get defined automatically. Then you could use the formula to do something else, and not have to reformulate the code. As an interim measure, QDL could at least support a way for the user to add the code to the page. So whoever defines the formula, in academic style, also gets to write a function that calculates that formula, where there is some sort of well-defined place to put the PHP and/or JS code to do the job. Then, you could be browsing the formula pages, find one you like, and easily get to the code, or include the formula page in a project, and the evaluation would go for the function instead of the academic presentation.
 
I wonder if anybody has ever done a TeX parser that generates a function?

← PREV Powered by Quick Disclosure Lite
© 2010~2021 SCS-INC.US
UP ↑