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

Method acos

__test__/theorem.js:347–357  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

345 return this.polynomial(...equation.reverse())
346 }
347 acos(n) {
348 if (typeof n != 'object' || BigNumber.isBigNumber(n)) {
349 n = BigNumber.isBigNumber(n) == true ? n.toNumber() : n
350 n = [n]
351 }
352 let result = []
353 for (var i = 0; i < n.length; i++) {
354 result.push(Math.acos(n[i]).toFixed(15))
355 }
356 return result.length == 1 ? result[0] : result
357 }
358 acosh(n) {
359 if (typeof n != 'object' || BigNumber.isBigNumber(n)) {
360 n = BigNumber.isBigNumber(n) == true ? n.toNumber() : n

Callers 4

findRoots.jsFile · 0.80
acos.jsFile · 0.80
findRootsMethod · 0.80
test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected