Method
graph
(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
Tested by
no test coverage detected