Skip to content

Commit

Permalink
add backslash rules (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
shashi committed Aug 31, 2020
1 parent c3620b1 commit 168230a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/simplify_rules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ let
@rule(identity(~x) => ~x)
@rule(-(~x) => -1*~x)
@rule(-(~x, ~y) => ~x + -1(~y))
@rule(~x::_isone \ ~y => ~y)
@rule(~x \ ~y => ~y / (~x))
@rule(~x / ~y => ~x * pow(~y, -1))
@rule(one(~x) => one(symtype(~x)))
@rule(zero(~x) => zero(symtype(~x)))
Expand Down

0 comments on commit 168230a

Please sign in to comment.