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

Method acosh

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

Source from the content-addressed store, hash-verified

109 }
110
111 private static Object acosh(
112 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {
113 double x = ScriptRuntime.toNumber(args, 0);
114 if (!Double.isNaN(x)) {
115 return Double.valueOf(Math.log(x + Math.sqrt(x * x - 1.0)));
116 }
117 return ScriptRuntime.NaNobj;
118 }
119
120 private static Object asin(
121 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {

Callers 1

math-functions.jsFile · 0.80

Calls 5

toNumberMethod · 0.95
logMethod · 0.80
sqrtMethod · 0.80
isNaNMethod · 0.45
valueOfMethod · 0.45

Tested by

no test coverage detected