Help Index :: Misc :: calculate|
Provides a very basic calculator.
The operators +, -, *, /, and ^ (exponent) are implemented.
You can use parentheses to group expressions to overcome precedence rules, for
> calc 2+4*3
2+4*3 = 14
> calc (2+4)*3
(2+4)*3 = 18
You can "roll dice" with expressions like 4d4 or 3d2+3.
(You may only roll up to 100 dice at a time.)
The constants pi, e, and i (imaginary, the square root of -1) can be used.
The functions sin(), cos(), sqrt(), exp(), and log() can be used.