You are browsing as a guest. Sign up (or log in) to start making projects!

1h 49m 47s logged

I implemented the mult formula!

  • I added the percentileToMult() function which basically just reimplements the Ruby code in TypeScript
  • I added the multToPercentile() function, which performs the exact mathematical inverse of percentileToMult()
  • I added 25 tests to make sure that my formula implementation was correct. I’m glad I tested it, because on my first attempt at the inverse function, I used a logarithm instead of a root 🤦
  • I made a Calculator.svelte component and put it on the site, which uses the functions I made

Next I think I’ll work on the annotated Ruby code walkthrough. I also have an idea to use <math> tags to render the steps to compute the formula, which I think would be interesting.

0
8

Comments 0

No comments yet. Be the first!