Ga naar hoofdinhoud

Calc Command

Usage: /calc <equation>

Calculates a math equation.
Supports functions like addition, subtraction, multiplication, division, sqrt, cbrt, sin, cos, tan, pi and factorial (! before a number).
All functions, including pi and factorial, must be passed as follows: func(x) where x is any digit or equation.

Parameters

  • Equation
    • Type: equation
    • Default: none, this parameter is required
    • The equation to evaluate

Example

/calc sin(pi(2)) (evaluates to sin(2 * π))