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 ofpercentileToMult() - 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.sveltecomponent 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.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.