MathGroup Archive 1999

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

Search the Archive

Re: question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg15619] Re: question
  • From: "Seth Chandler" <SChandler at uh.edu>
  • Date: Sat, 30 Jan 1999 04:28:22 -0500 (EST)
  • Organization: University of Houston
  • References: <78pa6k$cn1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Sure, first create a pure function called p using a slight variant of
the DSolve command you suggested.
In[7]:=
p=P/.First[DSolve[{P'[t]==0.031P[t], P[0]==5.3}, P,t]]


Out[7]=
\!\(5.2999999999999998223643161`15\
      2.71828182845904523536028747`15
        \^\(0.0309999999999999997779553951`15\ #1\)&\)

The evaluate the new function at 10, 100 or whatever you like. In[8]:=
p[10]
Out[8]=
7.2261531049005
In[9]:=
p[100]
Out[9]=
117.64914179164

Seth J. Chandler
Associate Professor of Law
University of Houston Law Center

Alice M. Dean wrote in message <78pa6k$cn1 at smc.vnet.net>...
>Hi, I was given this address by a colleague, who said you could quickly
>answer what I think is a very simple question.  After I evaluate the
>following in mathematica,
>
>DSolve[{P'[t]==0.031P[t], P[0]==5.3}, P[t],t]
>
>I get a result which is essentially: {{P[t] -> 5.3 E ^(0.031t)}}
>
>inside two sets of curly brackets.
>
>I would now like to compute P[10], P[100], etc.  Is there a reasonable
>way to do this?  Thanks, Alice Dean
>
>~~~~~~~~~~~~~~~~~~~~~~~~~
>Alice Dean
>Mathematics & Computer Science Department Skidmore College
>Saratoga Springs, NY 12866
>
>Phone: (518) 580-5286
>Fax: (518) 580-5936
>Skidmore College Information: (518) 580-5000   E-mail:
>adean at skidmore.edu
>WWW: http://www.skidmore.edu/~adean
>~~~~~~~~~~~~~~~~~~~~~~~~~
>



  • Prev by Date: Re: trig asymptotics
  • Next by Date: Re: Next Version of Mathematica?
  • Previous by thread: Re: question
  • Next by thread: Re: question