You could also write a simple formula evaluator. I did one once based on counting the number of open and closed brackets and working through them in a nested manner to preserve the order of precedence. You could easily convert the string "Sin" into a function call to Sin, passing the value.
evaluate a string
BlitzMax Forums/BlitzMax Beginners Area/evaluate a stringThe forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.