Skip to content

Commit 3fbbcc9

Browse files
committed
add -x => -1*x
1 parent 1d2dfb7 commit 3fbbcc9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rulesets.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const PLUS_RULES = RuleSet([
1818

1919
@acrule(*(~~x) + *(~β, ~~x) => *(1 + ~β, (~~x)...))
2020
@acrule(*(~α, ~~x) + *(~β, ~~x) => *(~α + ~β, (~~x)...))
21-
@acrule(*(~~x, ~α) + *(~~x, ~β,) => *(~α + ~β, (~~x)...))
21+
@acrule(*(~~x, ~α) + *(~~x, ~β) => *(~α + ~β, (~~x)...))
2222

2323
@acrule(~x + *(~β, ~x) => *(1 + ~β, ~x))
2424
@acrule(*(~α::isnumber, ~x) + ~x => *(~α + 1, ~x))
@@ -52,6 +52,7 @@ const POW_RULES = RuleSet([
5252

5353
const ASSORTED_RULES = RuleSet([
5454
@rule(identity(~x) => ~x)
55+
@rule(-(~x) => -1*~x)
5556
@rule(-(~x, ~y) => ~x + -1(~y))
5657
@rule(~x / ~y => ~x * pow(~y, -1))
5758
])

0 commit comments

Comments
 (0)