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

Version Path
decidim-admin-0.24.3 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss
decidim-admin-0.23.6 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss
decidim-admin-0.24.2 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss
decidim-admin-0.23.5 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss
decidim-admin-0.24.1 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss
decidim-admin-0.24.0 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss
decidim-admin-0.24.0.rc2 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss
decidim-admin-0.23.4 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss
decidim-admin-0.24.0.rc1 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss
decidim-admin-0.23.3 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss
decidim-admin-0.23.2 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss
decidim-admin-0.23.1 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss
decidim-admin-0.23.1.rc1 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss
decidim-admin-0.23.0 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss
decidim-admin-0.22.0 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss
decidim-admin-0.21.0 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss
decidim-admin-0.20.1 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss
decidim-admin-0.20.0 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss
decidim-admin-0.19.1 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss
decidim-admin-0.18.1 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss