| 714 | |
| 715 | // f(x) = ax² + bx + c |
| 716 | const createQuadraticFunc = params => x => ((params.a || 1) * x * x) + ((params.b || 1) * x) + (params.c || 0) |
| 717 | |
| 718 | // f(x) = a log(b (x + c)) + d |
| 719 | const createLogFunc = params => function (x) { if (x > 0) { return ((params.a || 1) * Math.log((params.b || 1) * (x + (params.c || 0)))) + (params.d || 0) } else { return 0 } } |
nothing calls this directly
no outgoing calls
no test coverage detected