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


Groups > comp.soft-sys.math.mathematica > #8432 > unrolled thread

plotting

Started byDavid <dh04414@gmail.com>
First post2012-02-09 10:48 +0000
Last post2012-02-10 10:54 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  plotting David <dh04414@gmail.com> - 2012-02-09 10:48 +0000
    Re: plotting David Bailey <dave@removedbailey.co.uk> - 2012-02-10 10:54 +0000

#8432 — plotting

FromDavid <dh04414@gmail.com>
Date2012-02-09 10:48 +0000
Subjectplotting
Message-ID<jh08a4$i5l$1@smc.vnet.net>
Dear All,

I'm trying to plot the function r[x] as a function of x (x=ω/ω0) but when I put values for x couldn't get number. rewrite 
This is kindly ask you for your comments on how to plot r[x] as a function of x.

Thank you in advance for your help. :)

\[Gamma]m = 10^11;
\[Gamma]e = 2.73*10^13;
\[Omega]e = 1.37*10^16;
\[Omega]m = 0.5 \[Omega]e;
\[Omega]0 = 0.4092 \[Omega]e;
\[Kappa]0 = 10^4;
x[\[Omega]_] := \[Omega]/\[Omega]e
y1 = 1.971*10^-3;
y2 = 0.23*10^-5;
a := 1 - 1/(x[\[Omega]]^2 + y1^2)


b := \[Gamma]e/(\[Omega]e * x[\[Omega]] (x[\[Omega]]^2 + y1^2))


c := 1 - (\[Omega]m^2/\[Omega]e^2)/(x[\[Omega]]^2 + y2^2)

d := (\[Omega]m^2/\[Omega]e^2*\[Gamma]m)/(\[Omega]e*
  x[\[Omega]] (x[\[Omega]]^2 + y2^2))

r[x_] := \[Sqrt]((\[Omega]e^2*x[\[Omega]]^2)/(
     9*10^16 (a^2 - b^2 - 1.69) + 
      4 a^2*b^2 ) (1.3 (a^2 - b^2) - 1.69 (a*c - b*d))*(a^2 - b^2 - 
       1.69) + ((2.6  a*b - 1.69 (a*d + b*c)) 2 a*b))

Plot[r[x]/\[Kappa]0, {x, 0, 0.6}]

[toc] | [next] | [standalone]


#8448

FromDavid Bailey <dave@removedbailey.co.uk>
Date2012-02-10 10:54 +0000
Message-ID<jh2t1p$ls$1@smc.vnet.net>
In reply to#8432
On 09/02/2012 10:48, David wrote:
> Dear All,
>
> I'm trying to plot the function r[x] as a function of x (x=ω/ω0) but when I put values for x couldn't get number. rewrite
> This is kindly ask you for your comments on how to plot r[x] as a function of x.
>
> Thank you in advance for your help. :)
>
> \[Gamma]m = 10^11;
> \[Gamma]e = 2.73*10^13;
> \[Omega]e = 1.37*10^16;
> \[Omega]m = 0.5 \[Omega]e;
> \[Omega]0 = 0.4092 \[Omega]e;
> \[Kappa]0 = 10^4;
> x[\[Omega]_] := \[Omega]/\[Omega]e
> y1 = 1.971*10^-3;
> y2 = 0.23*10^-5;
> a := 1 - 1/(x[\[Omega]]^2 + y1^2)
>
>
> b := \[Gamma]e/(\[Omega]e * x[\[Omega]] (x[\[Omega]]^2 + y1^2))
>
>
> c := 1 - (\[Omega]m^2/\[Omega]e^2)/(x[\[Omega]]^2 + y2^2)
>
> d := (\[Omega]m^2/\[Omega]e^2*\[Gamma]m)/(\[Omega]e*
>    x[\[Omega]] (x[\[Omega]]^2 + y2^2))
>
> r[x_] := \[Sqrt]((\[Omega]e^2*x[\[Omega]]^2)/(
>       9*10^16 (a^2 - b^2 - 1.69) +
>        4 a^2*b^2 ) (1.3 (a^2 - b^2) - 1.69 (a*c - b*d))*(a^2 - b^2 -
>         1.69) + ((2.6  a*b - 1.69 (a*d + b*c)) 2 a*b))
>
> Plot[r[x]/\[Kappa]0, {x, 0, 0.6}]
>
You have defined a function x[\[Omega]_], but you didn't give a value 
for \[Omega] itself (i.e. it doesn't have a global value) - so the 
function r[x] isn't a number. The easiest way to see that is to evaluate 
something like r[0] .

David Bailey
http://www.dbaileyconsultancy.co.uk

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web