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