Thread: about Eval
View Single Post
# 2 23-05-2014 , 10:49 AM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Posts: 3,374
When you call calc, the equation gets passed into the function as statement. That gets evaluated which is what the eval command does, and stores the result as res. Then it prints the statement and the result. Hope that helps. I haven't used eval much before so I'm not too clear on the dummy variable but I guess it needs to be there to be syntactically complete. Let me know if you need further clarification.


-stwert

Website - Blog - YouTube - Vimeo - Facebook - Twitter

-->How to Effectively Ask Questions on Forums<--