3 ms·
Rather nice that. I like it. Doesn't handle divide by zero very well though i.e. f(x)=1/x. Should probably consider that as undefined rather than a bad express
by hggigg 2y ago
Rather nice that. I like it.
Doesn't handle divide by zero very well though i.e. f(x)=1/x. Should probably consider that as undefined rather than a bad expression.
- tgv 2y agoYou could also set the x_min to 0.001 or so.
- stuffmatic 2y agoOr, since the function expression is just JavaScript, singularities can also be avoided like this: x == 0 ? 1 : Math.sin(x) / x