Re: How can I assign variables
- To: mathgroup at smc.vnet.net
- Subject: [mg22593] Re: How can I assign variables
- From: "Atul Sharma" <atulksharma at yahoo.com>
- Date: Sun, 12 Mar 2000 22:55:35 -0500 (EST)
- References: <8aeju5$3c4@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Try either In[1]:= soln = DSolve[B'[t] == (10 - B - T) B, B[t], t] b[t_] = B[t] /. soln[[1]] Out[1]= \!\({{B[t] -> t\ \((10\ B - B\^2 - B\ T)\) + C[1]}}\) Out[1]= \!\(t\ \((10\ B - B\^2 - B\ T)\) + C[1]\) or, In[2]:= soln = DSolve[B'[t] == (10 - B - T) B, B, t] B[t_] = B[t] /. soln[[1]] Out[2]= \!\({{B -> \((C[1] + \((10\ B - B\^2 - B\ T)\)\ #1 &)\)}}\) Out[3]= \!\(t\ \((10\ B - B\^2 - B\ T)\) + C[1]\) See section 3.5.10 in the Mathematica book for the difference between asking DSolve to return B or B[t]. Hope that helps. Atul -------------------------------------------------- Atul Sharma MD, FRCP(C) Pediatric Nephrologist, McGill University/Montreal Children's Hospital mark griggs wrote in message <8aeju5$3c4 at smc.vnet.net>... >How can I do this > >If I evaluate the following > DSolve[B'[t]==(10-B-T) B,B[t],t] I get {{B[t]-> t(10B -B^2 -Bt) >+C[1]}} > >what must I do to have the answer on the right of the -> actually stored >in B[t] so that I may use it in further calculations without having to >cut and paste. > >regards > >mark G >mathematica 4.0 Linux >Mandrake 7.0 > > >-- >Heisenberg may have slept here >------------------------------ >