Sha256: eccb5dc75b4df7d8d1142314da2954e8fb18c0e5e0ece0291a708b811cd7f8bc

Contents?: true

Size: 297 Bytes

Versions: 31

Compression:

Stored size: 297 Bytes

Contents

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

@function tan ($x){
  $x: unitless-rad($x);

  @return math.div(sin($x), cos($x));
}

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
decidim-admin-0.26.1 app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_tan.scss
decidim-admin-0.26.0 app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_tan.scss
decidim-admin-0.26.0.rc2 app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_tan.scss
decidim-admin-0.26.0.rc1 app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_tan.scss
decidim-admin-0.25.2 app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_tan.scss
decidim-admin-0.25.1 app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_tan.scss
decidim-admin-0.25.0 app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_tan.scss
decidim-admin-0.25.0.rc4 app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_tan.scss
decidim-admin-0.25.0.rc3 app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_tan.scss
decidim-admin-0.25.0.rc2 app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_tan.scss
decidim-admin-0.25.0.rc1 app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_tan.scss