Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #12569

Re: Plotting a series of Roots

From William Duhe <wjduhe@loyno.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Plotting a series of Roots
Date 2012-12-03 08:39 +0000
Message-ID <k9hofc$103$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


I want to make the second bit of code operate like the first:

First



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]





Second




M = 10000;
g = 1;
A = 10;
a = 1/100;(*initial plot temp*)b = 12/10;(*final plot temp*)c = 
 10^-8;(*initial temp*)d = 0;(*initial \[Beta]*)m = 1;

s[\[Alpha]_?NumericQ, t_?NumericQ] := 
  Module[{bb = (g/(2*\[Pi])^(3/2)*(m/T)^(3/2)*E^(-m/T))}, \[Beta][
     t] /. 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"][[1]]];
t1[\[Alpha]_?NumericQ, value_?NumericQ] = 
  t /. NSolve[s[\[Alpha], t] == value, t][[1]];
Plot[t1[\[Alpha], .9], {\[Alpha], .1, 1}, PlotRange -> Automatic]


But I can't seem to make it go!

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Plotting a series of Roots William Duhe <wjduhe@loyno.edu> - 2012-12-03 08:39 +0000

csiph-web