You can enter expressions in a C like syntax and evaluate them with this calculator. Try out the following expressions one by one.

x=4; sqrt(x); 2+pow(x,3); if( x < 10, y=1, y=2); // Read it as if (x < 10) y=1; else y=2;

(c) Benny Raphael (1998), I ported this parser to java from the CADREM system that I developed for my PhD.