aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/math/exp.js.v
diff options
context:
space:
mode:
Diffstat (limited to 'v_windows/v/vlib/math/exp.js.v')
-rw-r--r--v_windows/v/vlib/math/exp.js.v12
1 files changed, 12 insertions, 0 deletions
diff --git a/v_windows/v/vlib/math/exp.js.v b/v_windows/v/vlib/math/exp.js.v
new file mode 100644
index 0000000..cf41f61
--- /dev/null
+++ b/v_windows/v/vlib/math/exp.js.v
@@ -0,0 +1,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
+}