Inverse of a Function
const expoIn = t =>
(t==0) ? 0 : Math.pow(2, 10 * (t - 1))
const expoInInverse= t =>
(t==0) ? 0 : ((Math.log(t) + 10 * Math.log(2)) / Math.log(2)) / 10
console.log(expoIn(.35) + ' ' + expoInInverse(expoIn(.35)))
Very nice inverse function calculator by user fawad over at Wolfram Alpha. Was attempting to invert a standard “exponential in” easing function – after some futzing I resorted to the calculator 😀