It seems something has changed in substitute, breaking ex2 below
using ModelingToolkit
@parameters k
@variables t Y(t)
ex1 = Symbolics.unwrap(Y^2)
ex2 = Symbolics.unwrap(k*Y^2)
subber = Symbolics.substituter(Dict(Symbolics.unwrap(Y) => Symbolics.operation(Symbolics.unwrap(Y))))
subber(ex1) # works and give Y^2 instead of Y(t)^2
It seems something has changed in
substitute
, breakingex2
belowhowever the following now errors
┆Issue is synchronized with this Trello card by Unito