Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Tables and arrays' topicStudent Support Forum > General > "Tables and arrays"

Next Comment >Help | Reply To Topic
Author Comment/Response
Pedro Alves
10/27/98 12:08pm

Suppose I have an array of elements:

indices=Table[{h,k,l},{h,1,5},{k,1,5},{l,1,5}];

and I want to apply each of this {h,k,l} to a function f[h,k,l]... something like (NOTICE: this is wrong, but I think you get the picture):

Map[1/(#1^2 + #2^2 + #3^2)&, indices, 2]

The way it works is using multivariable tables, which giver a very long command line

URL: ,

Subject (listing for 'Tables and arrays')
Author Date Posted
Tables and arrays Pedro Alves 10/27/98 12:08pm
Re: Tables and arrays Aaron Honecker 11/13/98 10:13am
Next Comment >Help | Reply To Topic