Blah, these were driving me a little mad...
1. The F5 calculate works even if it is disabled. (Not that I don't use it
)
2. Inverse trigonometry functions don't work. (Debug says "! Out of stack space") Fixed this one by removing this line (I think it causes a sort of loop):
code:
if (/^Math\.(a(?:sin|cos|tan2?))\((.+)\)$/.test(Token)) {
var Func = "Math." + RegExp.$1 + "(" + RegExp.$2 + ")/Math.PI";
if (/^degrees?$/i.test(Angle)){
Token = Func + "*180";
} else if (/^grad$/i.test(Angle)) {
Token = Func + "*200";
}
Token = Token.Calculate();
}
3. Negative functions? (Not subtraction, but expressions beginning with "-Sin(1.5)" or "-Pi"; don't need this too desperately because "0-Pi" works)
4. Hexadecimal "not a number" is "NAN" as opposed to "NaN" in other bases.
Besides that, everything seems fine.
Really helpful for maths homework.