MCPcopy Create free account
hub / github.com/arguiot/TheoremJS / atan2

Method atan2

__test__/theorem.js:405–413  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

403 return result.length == 1 ? result[0] : result
404 }
405 atan2(x, y) {
406 x = [BigNumber(x).toNumber()]
407 y = [BigNumber(y).toNumber()]
408 let result = []
409 for (var i = 0; i < x.length; i++) {
410 result.push(Math.atan2(x[i], y[i]))
411 }
412 return result.length == 1 ? result[0] : result
413 }
414 atanh(n) {
415 if (typeof n != 'object') {
416 n = BigNumber.isBigNumber(n) == true ? n.toNumber() : n

Callers 10

drawCircularPointsMethod · 0.95
logHypotFunction · 0.80
pow.jsFile · 0.80
arg.jsFile · 0.80
atan2.jsFile · 0.80
argMethod · 0.80
logHypotMethod · 0.80
powMethod · 0.80
test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected