Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'another challenging list question' topicStudent Support Forum > General > "another challenging list question"

Next Comment >Help | Reply To Topic
Author Comment/Response
Lilly
04/24/12 4:42pm

some people on here are EXTREMELY helpful. my learning of mathematica is coming along. thanks in advance for the help.

LIST={{{1.,15.09},{1.,16.71},{1.,76.62},{1.,16.97},{1.,18.095}},{{1.04307,15.74},{1.02334,17.1},{1.02284,78.37},{1.03536,17.57},{0.998342,18.065}},{{1.07223,16.18},{1.03651,17.32},{1.0137,77.67},{1.03595,17.58},{1.02238,18.5}},{{1.09013,16.45},{1.04668,17.49},{1.01305,77.62},{1.10607,18.77},{1.01741,18.41}},{{1.02518,15.47},{1.00958,16.87},{0.997259,76.41},{1.05068,17.83},{0.989224,17.9}},{{1.02783,15.51},{0.989826,16.54},{1.00783,77.22},{1.033,17.53},{1.00083,18.11}}}

ok, im going to get real clear. so here is a little clarity builder first so we are on the same page first.

within the LIST there are lists
for example:
list={{{1., 15.09}, {1., 16.71}, {1., 76.62}, {1., 16.97}, {1.,18.095}}

in my list there are elements
for example:
element={1.,15.09}

within the elements, are positions

first position=1
2nd position=15.09

I want to look at each first position and display the list when the element with the highest first position switches.

so the first list displayed would be {{1.04307, 15.74}, {1.02334, 17.1}, {1.02284, 78.37}, {1.03536,17.57}, {0.998342, 18.065}}
(from nothing to {1.04307, 15.74} being the element with the highest first position.)

the next list displayed would be {{1.09013, 16.45}, {1.04668,17.49}, {1.01305, 77.62}, {1.10607, 18.77}, {1.01741, 18.41}}
(from the first element having the highest first position to the 4th element {1.10607, 18.77} having the highest first position)

there would not be any more switches in this example since the 4th element has the highest first position till the end of the set.

output should look like
{{{1.04307, 15.74}, {1.02334, 17.1}, {1.02284, 78.37}, {1.03536,17.57}, {0.998342, 18.065}}, {{1.09013, 16.45}, {1.04668,17.49}, {1.01305, 77.62}, {1.10607, 18.77}, {1.01741, 18.41}}}

-Lilly

URL: ,

Subject (listing for 'another challenging list question')
Author Date Posted
another challenging list question Lilly 04/24/12 4:42pm
Re: another challenging list question Bill Simpson 04/25/12 8:49pm
Next Comment >Help | Reply To Topic