Skip to content

Commit f64acef

Browse files
committed
get rid of inv if it somehow appears
1 parent a723820 commit f64acef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/simplify_rules.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ let
3939
@rule((((~x)^(~p::isliteral(Integer)))^(~q::isliteral(Integer))) => (~x)^((~p)*(~q)))
4040
@rule(^(~x, ~z::_iszero) => 1)
4141
@rule(^(~x, ~z::_isone) => ~x)
42+
@rule(inv(~x) => ~x ^ -1)
4243
]
4344

4445
ASSORTED_RULES = [

0 commit comments

Comments
 (0)