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

Method sin

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

Source from the content-addressed store, hash-verified

616 }
617
618 private static Object sin(
619 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {
620 double x = ScriptRuntime.toNumber(args, 0);
621 x = Double.isInfinite(x) ? Double.NaN : Math.sin(x);
622 return ScriptRuntime.wrapNumber(x);
623 }
624
625 private static Object sinh(
626 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {

Callers 15

qFunction · 0.80
ieFunction · 0.80
RFunction · 0.80
dFunction · 0.80
force_gcFunction · 0.80
xFunction · 0.80
testFunction · 0.80
fFunction · 0.80
15.8.2.16.jsFile · 0.80
partialFunction · 0.80
RotateXFunction · 0.80
RotateYFunction · 0.80

Calls 2

toNumberMethod · 0.95
wrapNumberMethod · 0.95

Tested by 1

testFunction · 0.64