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

Method tan

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

Source from the content-addressed store, hash-verified

637 }
638
639 private static Object tan(
640 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {
641 double x = ScriptRuntime.toNumber(args, 0);
642 x = Math.tan(x);
643 return ScriptRuntime.wrapNumber(x);
644 }
645
646 private static Object tanh(
647 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {

Callers 3

$Function · 0.80
dFunction · 0.80
15.8.2.18.jsFile · 0.80

Calls 2

toNumberMethod · 0.95
wrapNumberMethod · 0.95

Tested by

no test coverage detected