You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of deprecating this method, I recommend having a default None value for the variable x. The expand method would be called if x is not None and self returned otherwise.
This would fix DiracDelta('t').is_constant(), and similar operations relying on the simplify method, which currently fails.
It would also make the API consistent since (3 * DiracDelta('t')).simplify() does what is expected but DiracDelta('t').simplify() fails.
The simplify method of DiracDelta is deprecated. Use
expand(diracdelta=True, wrt=x)
instead.This was done because the
simplify
method on other objects has a different API (nowrt
flag), which was causing issues (e.g., #7716).The text was updated successfully, but these errors were encountered: