Skip to content

Commit

Permalink
Merge pull request #127 from JuliaSymbolics/s/backslash
Browse files Browse the repository at this point in the history
add backslash rules (#126)
  • Loading branch information
shashi authored Oct 2, 2020
2 parents 761d1e9 + 168230a commit 113f8b4
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 113f8b4

Please sign in to comment.