MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Array from for-loop iterations

  • To: mathgroup at smc.vnet.net
  • Subject: [mg116841] Array from for-loop iterations
  • From: Lengyel Tamas <lt648 at hszk.bme.hu>
  • Date: Wed, 2 Mar 2011 04:33:46 -0500 (EST)

Dear Mathworld Community,

I am tackling a simple problem,

I have written a simple for-loop using elements from an array of
3-dimensional vectors:

f0=0.5;
For[k = 1, k < 9, k++,

 (vec[[k, 3]] - f0)^2 + (vec[[k, 1]] - f0) (vec[[k, 2]] - vec[[k, 1]]) -
vec[[k, 2]] - f0) (vec[[k, 3]] - f0)
    ]

I don't know how to make an array out of the computed results.

Please help my silly soul.

Thank you.

Tamás


  • Prev by Date: Re: Sorting a list of symbols
  • Next by Date: Re: Sorting a list of symbols
  • Previous by thread: Re: problem to define a complex quantity
  • Next by thread: Re: Array from for-loop iterations