DSolve
- Subject: DSolve
- From: uunet!sun.acs.udel.edu!jack
- Date: Mon, 5 Mar 90 16:29:32 EST
- Apparently-to: mathgroup-send at yoda.ncsa.uiuc.edu
I have used DSolve with some success, but I am wondering if there might not be
a better way of using the solver. Here's a trivial example to illustrate...
In[17]:= diffeq = x'[t] == t
Out[17]= x'[t] == t
In[18]:= DSolve[diffeq,x[t],t]
2
t
Out[18]= {{x[t] -> -- + C[1]}}
2
In[19]:= sol = %[[1,1,1]] == %[[1,1,2]]
2
t
Out[19]= x[t] == -- + C[1]
2
In[20]:= x[0]=1
Out[20]= 1
In[21]:= Solve[sol,C[1]]/.t->0
Out[21]= {{C[1] -> 1}}
In[22]:= sol/.C[1]->1
2
t
Out[22]= x[t] == 1 + --
2