MathGroup Archive 1999

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

Search the Archive

Re: question

  • To: mathgroup at
  • Subject: [mg15622] Re: [mg15581] question
  • From: Sergio Terrazas <sterraza at>
  • Date: Sat, 30 Jan 1999 04:28:24 -0500 (EST)
  • Sender: owner-wri-mathgroup at

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]

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

  • Prev by Date: Re: Dividing top and bottom
  • Next by Date: Re: animated, variable color lines in ListPlot
  • Previous by thread: Re: question
  • Next by thread: Re: question