Skip to content

Commit 168230a

Browse files
committed
add backslash rules (#126)
1 parent c3620b1 commit 168230a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/simplify_rules.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ let
4545
@rule(identity(~x) => ~x)
4646
@rule(-(~x) => -1*~x)
4747
@rule(-(~x, ~y) => ~x + -1(~y))
48+
@rule(~x::_isone \ ~y => ~y)
49+
@rule(~x \ ~y => ~y / (~x))
4850
@rule(~x / ~y => ~x * pow(~y, -1))
4951
@rule(one(~x) => one(symtype(~x)))
5052
@rule(zero(~x) => zero(symtype(~x)))

0 commit comments

Comments
 (0)