I want to add something to a script to evaluate user given string inputs as mathematical expressions.
What is Grasshopper itself using ? Is it something David has written, part of QWhale, or some other library ? Can I use the same thing, or can anyone recommend a good freely available library with a not too restrictive license ?
Just to clarify - This has to be something that will work within the script, not just a separate component which evaluates the expression for a certain set of input values and passes it as a numerical input, because the script will be generating its own changing input values for the variables of the expression and using the results as it runs.
I'd like it to be able to cope with at least the same sort of range of functions as GH's own expression editor, and ideally to be able to add one or two extras.
Any pointers much appreciated, thanks.
Tags: