Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Operations on Ordered Pairs of Data' topicStudent Support Forum > General > Archives > "Operations on Ordered Pairs of Data"

Next Comment >Help | Reply To Topic
Author Comment/Response
Evan
03/17/10 11:51am

Howdy,

I am working on a lab report and the data that I have for the experiment is a list of ordered pairs, i.e: {{0,0},{1,1},{2,2}...}

I need to perform a separate function on each value in the ordered pair. I defined an f[x_] and g[x_] and I need to map f[x_] to the "x-value" of the ordered pair, and g[x_] to the "y-value" of the ordered pair, and then ideally have this made into a new list of ordered pairs. I have tried using MapAt, but aside from entering all of the elements that I need to apply the function to, there seems to be no way to do this. I am assuming there is a more efficient way to do this (as I have many data points) but I am just not familiar enough with the program to figure it out.

Any help is appreciated.

URL: ,

Subject (listing for 'Operations on Ordered Pairs of Data')
Author Date Posted
Operations on Ordered Pairs of Data Evan 03/17/10 11:51am
Re: Operations on Ordered Pairs of Data Nasser M. Ab... 03/26/10 5:22pm
Re: Operations on Ordered Pairs of Data Peter Pein 04/01/10 12:52pm
Next Comment >Help | Reply To Topic