Re: question
- To: mathgroup at smc.vnet.net
- Subject: [mg15622] Re: [mg15581] question
- From: Sergio Terrazas <sterraza at campus.cdj.itesm.mx>
- Date: Sat, 30 Jan 1999 04:28:24 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hi Alice!
First use Flatten to remove de outer set of curly brackets, and at the
same time give your solutin a name.
sol=DSolve[{P'[t]==0.031P[t], P[0]==5.3}, P[t],t]//Flatten now define a
function f[t_]=sol[[1,2]] Now you can evaluate, plot, or do whatever
you want with f[t]
Saludos,
Sergio Terrazas
Juarez, Mexico
At 04:23 AM 1/28/99 -0500, you wrote:
>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
>~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>