Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1990
*January
*February
*March
*April
*May
*June
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1990

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

Search the Archive

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




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