I want to use dsolve
to solve an initial value problem but the initial condition ics
appear to have no effect. Both dsolve
in the example give the same result.
from sympy import *
x = symbols('x')
f = Function('f')
eq = Eq(Derivative(f(x), x), f(x))
# No initial condition
pprint(dsolve(eq, f(x)))
# With initial condition f(0) = 1
pprint(dsolve(eq, f(x), ics={f(0):1}))
In both cases I get the same solution
x
f(x) = C1 ℯ
C1
is not replaced by the value 1
even with ics
. Sympy second order ode mentions sympy issue 4720 but that issue is now closed. I am using SymPy 1.1.1.