This code example extends the trigonometric functions of math.js with configurable angles: degrees, radians, or gradians.

Angles
Expression
Result