Skip to content

Commit 113f8b4

Browse files
authored
Merge pull request #127 from JuliaSymbolics/s/backslash
add backslash rules (#126)
2 parents 761d1e9 + 168230a commit 113f8b4

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)