Evaluate any expression

Click first window and enter expression.
Enter expression:
Evaluated/calculated value is:
Enter any valid mathematical expression in JavaScripta. This program will evaluate the expression. In expressions enter any constant PI or E and operations +, -, *, / and %, and any function abs, acos, asin, atan, ceil, cos, exp, floor, log, max, min, pow, random, round, sin, sqrt, tan You can test by clicking expression entry field and enter any of these lines (JavaScript is case sensitive meaning X is not x): PI 1+9*(2+8*(3+7*(4+6*(5+5*(6+4*(7+3*(8+2*(9+1)))))))) pow(2,10) % 10 fi=(1+sqrt(5))/2; (fi-1)*fi-1 a=3; b=4; gama=90; gamar=gama*PI/180; a*a+b*b-2*a*b*cos(gamar)