JuliaSymbolics / SymbolicUtils.jl

Symbolic expressions, rewriting and simplification
https://docs.sciml.ai/SymbolicUtils/stable/
Other
536 stars 107 forks source link

Documentation on re-writing does not behave as expected #420

Open Andersen98 opened 2 years ago

Andersen98 commented 2 years ago

I walked through the documentation here

r1(sin(2*(w-z))) does not match and r3 = @rule ~x * +(~~ys) => sum(map(y-> ~x * y, ~~ys)); r3(2 * (w+w+α+β)) does not match. I switched over to Metatheory.jl and it seems to work perfectly though.

0x0f0f0f commented 2 years ago

The doc over here should probably be updated

anstadnik commented 1 year ago

Hi! Can it be resolved? The only solution to figure out why @rule doesn't work as expected now is to read the code and commit messages. I have a similar problem, and there is no place for me to start from.

anstadnik commented 1 year ago

This might be related