The command line of QCAD allows you to start commands, enter coordinates or
enter values such as distances or radii.

### Mathematical Expressions

Mathematical constants available are:

PI, LN2, LN10, LOG2E, LOG10E, SQRT1_2, SQRT2

Mathematical functions available are:

abs, ceil, floor, exp, log, max, min, pow, sqrt, random, round, rad2deg, deg2rad,
sin, cos, tan, asin, acos, atan, atan2, log10, log1p, log2, sign, cosh, sinh, tanh,
acosh, asinh, atanh, expm1, hypot, cbrt, trunc

Most of these constants and functions are standard ECMAScript (JavaScript) functions and
documented online. In standard ECMAScript, these functions are part of the Math class so the
function *abs* would have to written as *Math.abs*. In the QCAD command line, you can
leave away the *Math.* part for convenience. Trigonometric functions (sin, cos, tan, asin, acos, atan, atan2)
accept or return angles in degrees. If you prefer the radian versions of these functions,
use the original *Math.* functions instead.

The functions *rad2deg* and *deg2rad* can be used to convert angles between
radian and degrees.