ScratchData LogoScratchData
Back to abu_developer's profile

equationEngine-ALPHA

ABabu_developer•Created September 8, 2011
equationEngine-ALPHA
3
1
91 views
View on Scratch

Description

ALPHA WARNING some basic things work I should put in PI, and e as constants. This snippet requrires an equation and a value for X as its input. Its output is the evaluation of the equation, or it solves for "y" I used the Dijkstra shunting algorythm to convert the equation written by the user into RPN. (see http://www.chris-j.co.uk/parsing.php ). This was suggested by http://scratch.mit.edu/users/gtoal on my earlier "parser" project. Got the evaluateEquation script to work, BUT if I don't have a delay before popping the result, the code hangs. I can't figure out what's going on there. I certainly would prefer not to have to put a delay in that loop!

Project Details

Project ID2018782
CreatedSeptember 8, 2011
Last ModifiedSeptember 8, 2011
SharedSeptember 8, 2011
Visibilityvisible
CommentsAllowed