math.js 152 B

1234
  1. // tpmt is two power minus ten times t scaled to [0,1]
  2. export function tpmt(x) {
  3. return (Math.pow(2, -10 * x) - 0.0009765625) * 1.0009775171065494;
  4. }