Calculator
Enter expressions into the box:
Available functions / commands
Special commands | clear | clear the screen of old outputs | | ↑ | retreive the previously entered expression |
Basic arithmetic | + | Addition, x + y | | - | Subtraction, x - y | | * | x * y. multiplication | | / | x / y. division |
Trigonometric functions (all arguments in radians) | sin | sine, sin(x) | | cos | cosine, cos(x) | | tan | tangent, tan(x) | | asin | arcsine, asin(x) | | acos | arccosine, acos(x) | | atan | arctangent, atan(x) | | atan2 | atan2(x,y) is arctangent of x/y | | deg2rad | deg2rad(x) converts x from degrees to radians | | rad2deg | rad2deg(x) converts x from radians to degrees |
| Powers and Logs | exp | exp(x) exponential, exp(x) = e^x | | log | log(x) logarithm base e. | | log10 | log10(x) logarithm base 10 | | abs | abs(x) is absolute value of x | | pow | pow(x,y) is x to the power y | | sqrt | sqrt(x) positive square root of x |
Random numbers | random | random() gives a random number between 0 and 1 | | randint | randint(n) gives a random integer in range 0,1,2,...,n-1 (inclusive). |
Others | ceil | ceil(x), "ceiling". | | floor | floor(x) | | round | round(x) is x rounded to the nearest integer | | max | max(x,y) returns the maximum of x and y | | min | min(x,y) returns the minimum of x and y |
|