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

Method sqrt

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

Source from the content-addressed store, hash-verified

630 }
631
632 private static Object sqrt(
633 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {
634 double x = ScriptRuntime.toNumber(args, 0);
635 x = Math.sqrt(x);
636 return ScriptRuntime.wrapNumber(x);
637 }
638
639 private static Object tan(
640 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {

Callers 15

ZFunction · 0.80
acoshMethod · 0.80
asinhMethod · 0.80
hypotMethod · 0.80
LinearRegressionFunction · 0.80
testFunction · 0.80
testFunction · 0.80
testFunction · 0.80
absFunction · 0.80
complexFunction · 0.80

Calls 2

toNumberMethod · 0.95
wrapNumberMethod · 0.95

Tested by 3

testFunction · 0.64
testFunction · 0.64
testFunction · 0.64