You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.
there are some cases where we don't want to multiply fractions with other things, one of them is 9/2 * x -> 9x / 2 (since this doesn't change anything and could be considered less readable)
a case we're not handling with the current logic, that should multiply is:
x * 6/x -> (x * 6) / x (which is needed for cancelling out)
one solution is just to have better cancelling code that doesn't only work with the fraction 6x/x, and can recognize that x cancels with the denominator in 6/x
another (possibly easier for now) solution would be to add a case for multiplying a symbol times a term with a symbol in the denominator
... this is a bit messy, so I'm not sure what the best solution is - open to suggestions!
there are some cases where we don't want to multiply fractions with other things, one of them is
9/2 * x -> 9x / 2
(since this doesn't change anything and could be considered less readable)a case we're not handling with the current logic, that should multiply is:
x * 6/x -> (x * 6) / x
(which is needed for cancelling out)one solution is just to have better cancelling code that doesn't only work with the fraction
6x/x
, and can recognize thatx
cancels with the denominator in6/x
another (possibly easier for now) solution would be to add a case for multiplying a symbol times a term with a symbol in the denominator
... this is a bit messy, so I'm not sure what the best solution is - open to suggestions!
this came up because of a case in #88
The text was updated successfully, but these errors were encountered: