-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(rules): add MultiplicativeInverse rule #19
Conversation
- for handling / in expressions
✅ Deploy Preview for friendly-daifuku-ae17d2 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #19 +/- ##
==========================================
+ Coverage 88.69% 89.49% +0.80%
==========================================
Files 21 22 +1
Lines 2520 2560 +40
==========================================
+ Hits 2235 2291 +56
+ Misses 285 269 -16 ☔ View full report in Codecov by Sentry. |
- oops, the md was being ignored multiply vs multiplication. naming is hard. consistency is also hard.
## [0.9.4](v0.9.3...v0.9.4) (2024-02-06) ### Features * **rules:** add MultiplicativeInverse rule ([#19](#19)) ([40a2d88](40a2d88))
🎉 This PR is included in version 0.9.4 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
People keep asking why mathy can't handle "4x / (2x + 7)" and friends. Division isn't supported for our workhorse rules like Distributive Property, Commutative Property, etc.
Luckily we can use the multiplicative inverse rule to transform division into a multiplication of the reciprocal of the denominator.
This is most easily explained with an example
4 / 2 = 4 * 1 / 2
.After conversion, expressions can be further simplified with other rules.