Skip to content

Conversation

Bumblebee00
Copy link
Contributor

@Bumblebee00 Bumblebee00 commented Aug 22, 2025

this pr aims to solve this issue. Is still experimental and I havent tested it a lot.

Basically works like this:
When the code is in the matcher for a * operation, and at leas one of the factors of the * (in the lhs) has a power, check if the operation of data is a division, if yes continue the matching with data being transformed to a multiplication between the numerator of the division, and the denominator raised to a negative power.

So for example the rule r_one = @rule a*b^(~n) => ~, if called with r_one(a/b) before this pr would skip the matching process, now instead continues the matching process with data transformed to a*(b^-1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant