(f, x)
| 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 |
no outgoing calls
no test coverage detected