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

Method run

__test__/theorem.js:786–795  ·  view source on GitHub ↗
(f, x)

Source from the content-addressed store, hash-verified

784 }
785 }
786 run(f, x) {
787 x = new BigNumber(x).toNumber()
788 let out = 0
789 try {
790 out = f.core(x)
791 } catch(e) {
792 throw `[TheoremJS]: ${e}`
793 }
794 return out
795 }
796 slope(f, x=0, i=1E-10) {
797 const f1 = f.core(x)
798 const x1 = x

Callers 3

numeralSolveMethod · 0.95
numeralSolve.jsFile · 0.80
test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected