Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'display when switch from positive to negative' topicStudent Support Forum > General > "display when switch from positive to negative"

Next Comment >Help | Reply To Topic
Author Comment/Response
newb
05/07/12 2:54pm

here is my list.

{{1,1,1,1},{1,1,1,5}},{{1,1,1,1},{1,1,1,-6}},{{1,1,1,1},{1,1,1,4}},{{1,1,1,1},{1,1,1,3}}}

that is the shape of my list above, but I want to look at the last position {5,-6,4,3}
when the sign switches from - to + display the mini list.

1st switch
the sign switches from positive to negative; so display {{1,1,1,1},{1,1,1,-6}}

2nd switch
the sign switches from negative to positive; so display {{1,1,1,1},{1,1,1,4}}


there are only two switches in this example… so here is my output

{{{1,1,1,1},{1,1,1,-6}},{{1,1,1,1},{1,1,1,4}}}

URL: ,

Subject (listing for 'display when switch from positive to negative')
Author Date Posted
display when switch from positive to negative newb 05/07/12 2:54pm
Re: display when switch from positive to negative toen 05/07/12 11:46pm
Re: display when switch from positive to negative Bill Simpson 05/08/12 00:38am
Re: display when switch from positive to negative Peter Pein 05/08/12 10:05am
Next Comment >Help | Reply To Topic