MCPcopy Create free account
hub / github.com/mozilla/rhino / exp

Method exp

rhino/src/main/java/org/mozilla/javascript/NativeMath.java:245–253  ·  view source on GitHub ↗
(
            Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args)

Source from the content-addressed store, hash-verified

243 }
244
245 private static Object exp(
246 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {
247 double x = ScriptRuntime.toNumber(args, 0);
248 x =
249 (x == Double.POSITIVE_INFINITY)
250 ? x
251 : (x == Double.NEGATIVE_INFINITY) ? 0.0 : Math.exp(x);
252 return ScriptRuntime.wrapNumber(x);
253 }
254
255 private static Object expm1(
256 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {

Callers 6

gFunction · 0.80
15.8.2.8.jsFile · 0.80
bnModPowIntFunction · 0.80
bnPowFunction · 0.80
bnModPowIntFunction · 0.80
bnPowFunction · 0.80

Calls 2

toNumberMethod · 0.95
wrapNumberMethod · 0.95

Tested by

no test coverage detected