Sha256: 1a1849619268ef0ea5d7062c7f99460d7bc590c2261f31a8a5f56a9d1081696c
Contents?: true
Size: 322 Bytes
Versions: 106
Compression:
Stored size: 322 Bytes
Contents
// Returns E^x, where x is the argument, and E is Euler's constant, the base of the natural logarithms. // @param {Number} $x // @example // exp(1) // 2.71828 // exp(-1) // 0.36788 @function exp ($x) { $ret: 0; @for $n from 0 to 24 { $ret: $ret + pow($x, $n) / fact($n); } @return $ret; }
Version data entries
106 entries across 106 versions & 3 rubygems