Math.Sin(Math.PI) gives 1.22460635382238E-16 which is obviously not correct because we all know that sin(pi) is really 0... I know this is a precision error, but, how could it be handled? anyone have any discussion about it? answers?
I figured it out... I just had to handle the case when the person wanted to do sin(pi)... hehe. eaaaaaaasy.
but, what about multiples of pi? like 2*pi!? blah...
wait, wait... i think if you just mod by pi it'll be fine... YESS!! It worked!!!
In the good old times I had to implements scripting (function evaluation) myself not once or twice. Did manual parsers, yacc/lex. But today why won't you use interfaces provided by microsoft? You are locking yourself into the microsoft world by switching to .NET/C#, so why not to use other stuff they give you for free?