MathGroup Archive 1990

[Date Index] [Thread Index] [Author Index]

Search the Archive

DSolve


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




  • Prev by Date: Use of Literal
  • Next by Date: Re: Literal
  • Previous by thread: DSolve
  • Next by thread: Re: DSolve