blob: cf41f610824d66a9768396937bbd6973e360df8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
module math
fn JS.Math.exp(x f64) f64
// exp calculates exponent of the number (math.pow(math.E, x)).
[inline]
pub fn exp(x f64) f64 {
mut res := 0.0
#res.val = Math.exp(x)
return res
}
|