We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bed053 commit 89fc5e8Copy full SHA for 89fc5e8
src/rulesets.jl
@@ -50,7 +50,7 @@ const TIMES_RULES = RuleSet([
50
])
51
52
const POW_RULES = RuleSet([
53
- @rule(^(*(~~x), ~y) => *(map(a->pow(a, ~y), ~~x)...))
+ @rule(^(*(~~x), ~y::isliteral(Integer)) => *(map(a->pow(a, ~y), ~~x)...))
54
@rule((((~x)^(~p::isliteral(Integer)))^(~q::isliteral(Integer))) => (~x)^((~p)*(~q)))
55
@rule(^(~x, ~z::_iszero) => 1)
56
@rule(^(~x, ~z::_isone) => ~x)
0 commit comments