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


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

Re: for loop in mathematica help

From DrMajorBob <btreat1@austin.rr.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: for loop in mathematica help
Date 2011-05-08 11:34 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <iq5v4l$phb$1@smc.vnet.net> (permalink)

Show all headers | View raw


That's really unclear, but here are some things that could help (with a 
smaller range):

l = Range[0, 110, 10];
rhs = (0.08303 + 0.4709 I)*l*3.89610 + 154

{154. + 0. I, 157.235 + 18.3467 I, 160.47 + 36.6935 I,
  163.705 + 55.0402 I, 166.94 + 73.3869 I, 170.175 + 91.7337 I,
  173.41 + 110.08 I, 176.645 + 128.427 I, 179.879 + 146.774 I,
  183.114 + 165.121 I, 186.349 + 183.467 I, 189.584 + 201.814 I}

rhs = Table[(0.08303 + 0.4709 I)*j*3.89610 + 154, {j, 0, 110, 10}]

{154. + 0. I, 157.235 + 18.3467 I, 160.47 + 36.6935 I,
  163.705 + 55.0402 I, 166.94 + 73.3869 I, 170.175 + 91.7337 I,
  173.41 + 110.08 I, 176.645 + 128.427 I, 179.879 + 146.774 I,
  183.114 + 165.121 I, 186.349 + 183.467 I, 189.584 + 201.814 I}

Thread[lhs == rhs]

{lhs == 154. + 0. I, lhs == 157.235 + 18.3467 I,
  lhs == 160.47 + 36.6935 I, lhs == 163.705 + 55.0402 I,
  lhs == 166.94 + 73.3869 I, lhs == 170.175 + 91.7337 I,
  lhs == 173.41 + 110.08 I, lhs == 176.645 + 128.427 I,
  lhs == 179.879 + 146.774 I, lhs == 183.114 + 165.121 I,
  lhs == 186.349 + 183.467 I, lhs == 189.584 + 201.814 I}

Bobby

On Sat, 07 May 2011 06:33:09 -0500, 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
>


--
DrMajorBob@yahoo.com

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


Thread

Re: for loop in mathematica help DrMajorBob <btreat1@austin.rr.com> - 2011-05-08 11:34 +0000

csiph-web