Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'iteration through list of points' topicStudent Support Forum > General > Archives > "iteration through list of points"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Ben Kovitz
10/16/04 11:39pm

Aaron, maybe you're looking for the Map function (abbreviated /@):

f[a_] := Tan[a[[1]]/a[[2]]]

f /@ {{234, 54}, {252, 123}, {141, 544}, {576, 242}}


Or maybe Apply (abbreviated @@@ to iterate over a list):

f[x_, y_] := Tan[x/y]

f @@@ {{234, 54}, {252, 123}, {141, 544}, {576, 242}}


Ben

URL: ,

Subject (listing for 'iteration through list of points')
Author Date Posted
iteration through list of points Aaron 09/29/04 1:16pm
Re: iteration through list of points Ben Kovitz 10/16/04 11:39pm
Re: iteration through list of points Henry Lamb 10/16/04 11:50pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic