Open qwertyjl opened 1 year ago
you don't need $
there.
Sometimes if I don't put $,
the rules don't work in simplification.
Example:
@variables x[1:10]
r2 = [@acrule(*(x[2], x[5]) => 0)]
r3 = [@acrule(*($(x[2]), $(x[5])) => 0)]
f = x[2]*x[5]
simplify(f, RuleSet(r2)) # x[2]*x[5]
simplify(f, RuleSet(r3)) # 0
It would be nice to have a function to define a rule. The problem with macros is that sometimes it becomes difficult to interpolate all the variables correctly.
I also report a problem:
Despite this, the generated rules work correctly when simplifying.