SymbolicUtils.jl icon indicating copy to clipboard operation
SymbolicUtils.jl copied to clipboard

`@arithmetic_rule`

Open shashi opened this issue 1 year ago • 1 comments

Have a macro

@arithmetic_rule $(D(r)) * ~x => ...

such that it matches,

D(r) * a * b with ~x as a*b (D(r) * b) / a with ~x as b/a

Also similarly enable: D(x) * ~y + ~x

This should simplify writing redundant rules in MethodOfLines.jl

shashi avatar Feb 06 '23 17:02 shashi