const c = Math.exp(-Math.log((Math.abs(end - start) + rate) / rate) / num);