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 f336092 commit 1bed053Copy full SHA for 1bed053
src/rulesets.jl
@@ -51,7 +51,7 @@ const TIMES_RULES = RuleSet([
51
52
const POW_RULES = RuleSet([
53
@rule(^(*(~~x), ~y) => *(map(a->pow(a, ~y), ~~x)...))
54
- @rule((((~x)^(~p))^(~q)) => (~x)^((~p)*(~q)))
+ @rule((((~x)^(~p::isliteral(Integer)))^(~q::isliteral(Integer))) => (~x)^((~p)*(~q)))
55
@rule(^(~x, ~z::_iszero) => 1)
56
@rule(^(~x, ~z::_isone) => ~x)
57
])
0 commit comments