MathGroup Archive 2000

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

Search the Archive

Re: How can I assign variables

  • To: mathgroup at smc.vnet.net
  • Subject: [mg22592] Re: [mg22573] How can I assign variables
  • From: "David Park" <djmp at earthlink.net>
  • Date: Sun, 12 Mar 2000 22:55:35 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Mark,

Use either of these forms of solution:

Clear[B];
Bsol = DSolve[B'[t] == (10 - B - T) B, B[t], t][[1, 1]]
B[t_] = B[t] /. Bsol

B[t] -> t*(10*B - B^2 - B*T) + C[1]
t*(10*B - B^2 - B*T) + C[1]

Your function is now defined.

B[s]
s*(10*B - B^2 - B*T) + C[1]

This obtains the DSolve solution as a pure function.

Clear[B];
Bsol = DSolve[B'[t] == (10 - B - T) B, B, t][[1, 1]]
B[t_] = B[t] /. Bsol

B -> (C[1] + (10*B - B^2 - B*T)*#1 & )
t*(10*B - B^2 - B*T) + C[1]

>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
>------------------------------
>
>



  • Prev by Date: Re: ScatterPlot3D with vertical lines
  • Next by Date: Re: How can I assign variables
  • Previous by thread: How can I assign variables
  • Next by thread: Re: How can I assign variables