FastTrack on learning to cook
and Cooking Reference
Also Known As FTLtCaCR
Multiply is * (not X!)
+ - * / ^ | & Math.sqrt(x) and more!
Enter a mathmatical expresion and hit evaluate!
Do it - Your input and results are shown below.
Examples
(7 / 2) * 3 | Evaluates to | 10.5 |
12 % 5 | Evaluates to | 2 |
Math.sqrt(16) | Evaluates to | 4 |
15 & 9 | Evaluates to | 9 (1111 & 1001 = 1001) |
15 | 9 | Evaluates to | 15 (1111 | 1001 = 1111) |
15 ^ 9 | Evaluates to | 6 (1111 ^ 1001 = 0110) |
status = (20 >= 18) ? "adult" : "minor" | Evaluates to | adult |
Functions
Math.abs(x) | Calculates the absolute value of a number. |
Math.acos(x) | Calculates the arccosine (in radians) of a number. |
Math.asin(x) | Calculates the arcsine (in radians) of a number. |
Math.atan(x) | Calculates the arctangent (in radians) of a number. |
Math.atan2(x,y) | Calculates the arctangent of the quotient of its arguments. |
Math.ceil(x) | Rounds up (Math.ceil(-9.01) = -9.0 : counts up - towards zero). |
Math.cos(x) | Calculates the cosine of a number. |
Math.E | Returns Euler's constant - the base of the natural logarithms. |
Math.exp(x) | Calculates e (the base of natural logarithms) raised to a power. |
Math.floor(x) | Rounds down (Math.floor(-9.01) = -10.0 : counts down - away from zero). |
Math.log(x) | Calculates the natural logarithm (base E) of a number. |
Math.max(x,y) | Calculates the greater of two numbers. |
Math.min(x,y) | Calculates the lesser of two numbers. |
Math.pow(x,y) | Calculates base to the exponent power. |
Math.random() | Calculates a pseudo-random number between 0 and 1. |
Math.round(x) | Rounds up if the decimal is greater than or equal to .5, else it will round down. |
Math.sin(x) | Calculates the sine of a number. |
Math.sqrt(x) | Calculates the square root of a number. |
Math.tan(x) | Calculates the tangent of a number. |
Operators
addition/subtraction |
+ - |
multiply/divide/modulus |
* / % |
% modulus - Returns the integer remainder of dividing the two operands | |
comma |
, |
assignment |
= += -= *= /= %= <<= >>= >>>= &= ^= |= |
conditional |
?: |
logical-or |
|| |
logical-and |
&& |
bitwise-or |
| |
bitwise-xor |
^ |
bitwise-and |
& |
equality |
== != |
relational |
< <= > >= |
bitwise shift |
<< >> >>> |
negation/increment |
! ~ - + ++ -- typeof void delete |