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

Method graph

__test__/theorem.js:724–730  ·  view source on GitHub ↗
(f, from=-100, to=100, step=0.1)

Source from the content-addressed store, hash-verified

722 return slope
723 }
724 graph(f, from=-100, to=100, step=0.1) {
725 let array = {}
726 for (var i = new BigNumber(from); i.lessThanOrEqualTo(new BigNumber(to)); i = i.plus(new BigNumber(step))) {
727 array[i.toString()] = f.core(i).toFixed(15)
728 }
729 return array
730 }
731 integrate(poly) {
732 if (poly.type != 'polynomial') {
733 throw "TheoremJS: Integrate: Not a polynomial"

Callers

nothing calls this directly

Calls 2

plusMethod · 0.80
toStringMethod · 0.80

Tested by

no test coverage detected