// Returns the cotangent of a number.
// @param {Number} $x A number in rad or deg. Assuming unitless number to be in rad.
// @example
//     cot(0.5236) // 1.73205
//     cot(30deg)  // 1.73205
@use "sass:math";

@function cot ($x) {
    $x: unitless-rad($x);
    @return math.div(1, tan($x));
}
