If I put the initial conditions directly into the desolve command, it works. Why is that? Here is an example
Code : Tout sélectionner
>> ode:=diff(y(t),t)+y(t)=0
diff(y(t),t)+y(t)=0
>> desolve([ode,y(0)=1],y(t))
exp(-t)
Code : Tout sélectionner
6>> ode:=diff(y(t),t)+y(t)=0
diff(y(t),t)+y(t)=0
7>> ic:=y(0)=1
y(0)=1
8>> desolve([ode,ic],y(t))
[]
// Time 0
Am I doing something wrong?
--Nasser