Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #2236
| From | Tomas Garza <tgarza10@msn.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: mathematica help please |
| Date | 2011-05-09 10:21 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <iq8f82$60n$1@smc.vnet.net> (permalink) |
I executed your code in a fresh session and it worked allright. Perhaps the name of one of the definitions (SetDelayed) had been used previously and not Clear-ed. It is good practice to use a semicolon ; at the end of each line (except, of course, in the Plots) - in those cases use different cells. Also, avoid using uppercase letters in your variables.
-Tomas
> Date: Sun, 8 May 2011 07:39:20 -0400
> From: arda1404@gmail.com
> Subject: mathematica help please
> To: mathgroup@smc.vnet.net
>
> 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}]
>
>
> i write this code but it gives this error SetDelayed::write: Tag Integer in 400[l_] is Protected. >>
>
> help me pleasee
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: mathematica help please Tomas Garza <tgarza10@msn.com> - 2011-05-09 10:21 +0000
csiph-web