Take the limit of a function. A return value of NaN indicates that no limit exists either due to a discontinuity or imaginary value.
NaN
Function f(x)
f(x)
The x-value where to take the limit
The approach distance
The discontinuity cutoff
lim(f(x->x))
const y = SMath.lim(Math.log, 0); // -Infinity Copy
const y = SMath.lim(Math.log, 0); // -Infinity
Take the limit of a function. A return value of
NaN
indicates that no limit exists either due to a discontinuity or imaginary value.