The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Array from for-loop iterations
Replies: 5   Last Post: Mar 3, 2011 6:04 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Lengyel Tamas

Posts: 10
Registered: 2/23/11
Array from for-loop iterations
Posted: Mar 2, 2011 4:34 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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:

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.


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.