Originally posted by: Satish
Great Emad.. ... :) Keep it up....
Helped me lot in my project.
Thanks
Satish
Originally posted by: K.G.
How to add support for operators like ==, >=, <= etc?
Originally posted by: PDJ
Great work. Helps me a lot !
ReplyOriginally posted by: Marco Guimar�es
Does this support only Integers? I tried to put a double in the expression (5.3 or 3,6) and I can't get the correct result.
Thanks !
ReplyOriginally posted by: internationale
what do the states represented by the "state" variable 1, 2, 3 in the parse method signify? If you were to give them descriptive names what would you call them?
Originally posted by: Liu
2 + a() will not work, if a() is a function.
why?
Originally posted by: David Keen
The description of the logn() function is incorrect.
The first parameter is the base, the second the number whose log is being taken. E.g. logn(10,2) gives 0.3010, logn(10,100) gives 2 exactly.
So this is not a problem with the function, but with its description in the table.
David
Originally posted by: omoshima
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?
[update]
I figured it out... I just had to handle the case when the person wanted to do sin(pi)... hehe. eaaaaaaasy.
[update]
but, what about multiples of pi? like 2*pi!? blah...
[update]
wait, wait... i think if you just mod by pi it'll be fine... YESS!! It worked!!!
Originally posted by: Chepel
Regards!
1) unary minus operator has not implemented...
2) no string support...
3) why not just
(new CSharpCodeProvider()).CreateCompiler() ?
=)
Reply
Originally posted by: Gene Stolarov
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?