MathGroup Archive 2011

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

Search the Archive

Re: Array from for-loop iterations

  • To: mathgroup at smc.vnet.net
  • Subject: [mg116871] Re: Array from for-loop iterations
  • From: DrMajorBob <btreat1 at austin.rr.com>
  • Date: Thu, 3 Mar 2011 05:56:19 -0500 (EST)

Table[stuff, {k, 9}]

Bobby

On Wed, 02 Mar 2011 03:33:46 -0600, Lengyel Tamas <lt648 at hszk.bme.hu> 
wrote:

> 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=E1s
>


--
DrMajorBob at yahoo.com


  • Prev by Date: Any recommendations for new hardware (quadcore/GPUs)?
  • Next by Date: Re: Array from for-loop iterations
  • Previous by thread: Re: Array from for-loop iterations
  • Next by thread: Re: Array from for-loop iterations