This has been discussed before. We want both the behaviors of solve
and dsolve. i.e., we want both
>>> solve(f(x).diff(x) - f(x), f(x))
[Derivative(f(x), x)]
and
>>> dsolve(f(x).diff(x) - f(x), f(x))
f(x) == C1*exp(x)
I don't like the idea of using f instead of f(x) as a flag. What
happens if
Hi, what about putting a dispatcher into solve to redirect to dsolve in
case it detects the system contains a differential equation?
I mean something like this:
> >>> f = Function('f')
>>> solve(f(x).diff(x) - f(x), f(x)) # solve as a non-differential equation
[f(x)]
>>> solve(f(x).diff(x) -