Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #2217
| From | David Bailey <dave@removedbailey.co.uk> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: mathematica help please |
| Date | 2011-05-09 10:18 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <iq8f2a$5rj$1@smc.vnet.net> (permalink) |
| References | <iq5v8n$pjj$1@smc.vnet.net> |
On 08/05/2011 12:36, Arda Akal=C4=B1n wrote:
> z = 0.08303 + I 0.4709
> y = I 4.782
> IR = 400
> VR = 154000/Sqrt[3]
> VS[l_] := ((l + (z*y)/2)*VR) + z*IR
> IS[l_] := ((l + (z*y)/4)*y*VR) + ((l + (z*y)/2)*IR)
> Plot[Sqrt[3]*Abs[VS[l]], {l, 0, 1100}]
> Plot[Abs[IS[l]], {l, 0, 1100}]
> S[l_] := 3*VS[l]*Conjugate[IS[l]]
> Plot[Abs[S[l]], {l, 0, 1100}]
>
Hmmm - when I paste that into Mathematica, it works, and generates some
plots!
My guess is that your code was actually embedded in a larger context,
such as inside a function. In that case, each of those lines should be
terminated with a semicolon (;).
In general it is better to avoid using variables with names that start
with a capital letter, as these are reserved for possible use in future
versions of Mathematica.
David Bailey
http://www.dbaileyconsultancy.co.uk
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
mathematica help please Arda Akalın <arda1404@gmail.com> - 2011-05-08 11:36 +0000 Re: mathematica help please David Bailey <dave@removedbailey.co.uk> - 2011-05-09 10:18 +0000 Re: mathematica help please Alois Steindl <Alois.Steindl@tuwien.ac.at> - 2011-05-09 10:19 +0000
csiph-web