Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #2202
| From | Bob Hanlon <hanlonr@cox.net> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: for loop in mathematica help |
| Date | 2011-05-08 11:36 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <iq5v70$pi2$1@smc.vnet.net> (permalink) |
f[x_] := Abs[(0.08303 + I 0.4709)*x*3.89610 + 154];
v1 = f /@ Range[0, 1100, 10];
Since the RHS of the definition of f is Listable
v2 = f[Range[0, 1100, 10]];
v3 = {}; For[x = 0, x <= 1100, x = x + 10, v3 = Append[v3, f[x]]];
v1 == v2 == v3
True
Bob Hanlon
---- "Arda Akal=C4=B1n" <arda1404@gmail.com> wrote:
==========================
i want to creat this equation
V=(0.08303+0.4709j)*l*3.89610+154
l 0 from 1100
how can i do this
For[l = 0, l < 1100, i + 10,
V = Abs[(0.08303 + I 0.4709)*l*3.89610 + 154]]
I write this but i cant get solution
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: for loop in mathematica help Bob Hanlon <hanlonr@cox.net> - 2011-05-08 11:36 +0000
csiph-web