Sha256: f5ad35027734d609ab0b1b1ada2814d0c22e2a55c72058a8719cc2d24a646ea4
Contents?: true
Size: 362 Bytes
Versions: 31
Compression:
Stored size: 362 Bytes
Contents
// Returns the arcsine of a number. // @param {Number} $x A number between -1 and 1. // @example // asin(0.1) // 0.10017 // asin(-1) // -1.5708 @use "sass:math"; @function asin ($x){ @if $x > 1 or $x < -1{ @warn "Argument for `asin()` must be a number between -1 and 1"; @return null; } @return atan(math.div($x, sqrt(1 - $x * $x))); }
Version data entries
31 entries across 31 versions & 1 rubygems