Sha256: fdc6a420573502791754520ca6ba5058c044e932f33819b8cf0c4e393022016a
Contents?: true
Size: 338 Bytes
Versions: 31
Compression:
Stored size: 338 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 @use "sass:math"; @function exp ($x){ $ret: 0; @for $n from 0 to 24{ $ret: $ret + math.div(pow($x, $n), fact($n)); } @return $ret; }
Version data entries
31 entries across 31 versions & 1 rubygems