Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #12476 > unrolled thread
| Started by | William Duhe <wjduhe@loyno.edu> |
|---|---|
| First post | 2012-11-27 08:32 +0000 |
| Last post | 2012-11-27 08:32 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Re: Plotting a series of Roots William Duhe <wjduhe@loyno.edu> - 2012-11-27 08:32 +0000
| From | William Duhe <wjduhe@loyno.edu> |
|---|---|
| Date | 2012-11-27 08:32 +0000 |
| Subject | Re: Plotting a series of Roots |
| Message-ID | <k91trc$5iq$1@smc.vnet.net> |
So here I have an algorithm that gives me how my roots change as a function of lambda or t1[lambda,1]:
s1[lambda_, t_] =
x[t] /. DSolve[{x'[t] == lambda, x[0] == 0}, x[t], t][[1]];
lambda t;
t1[lambda_, value_] = t /. Solve[s1[lambda, t] == value, t][[1]];
value/lambda;
s1[lambda, t1[lambda, value]];
value;
Plot[t1[lambda, 1], {lambda, .1, 1}, PlotRange -> Automatic]
What I would like to do is in a similar fashion solve the differential equation bellow and plot how a particular root of that equation changes with \[Alpha]. It is important to note here that I have to use NDSolve rather than DSolve for this type of equation.What I would like is analogous to the above code modified to be t1[\[Alpha],1]with the modified equations.
M = 10000;
g = 1;
\[Alpha] = 1;
A = 10;
a = .01;(*initial plot temp*)
b = 1.2; (*final plot temp*)
c = 0.00000001; (*initial temp*)
d = 0; (*initial \[Beta]*)
m = 1;
bb = (g/(2*\[Pi])^(3/2)*(m/T)^(3/2)*E^(-m/T));
s = NDSolve[{\[Beta]'[T] == (3*\[Alpha]^2*M*T^(5/2))/(
Sqrt[2*g]*m^(9/2))*(bb^2 - \[Beta][T]^2), \[Beta][c] ==
d}, \[Beta], {T, a, b}, Method -> "BDF"];
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web