Sha256: a695c18e36e4492c7362c56d61ebfdd9a292e52f1d4a25ea60a7cf6c0f94ba59
Contents?: true
Size: 348 Bytes
Versions: 106
Compression:
Stored size: 348 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 @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($x / sqrt(1 - $x * $x)); }
Version data entries
106 entries across 106 versions & 3 rubygems