MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Working with Lists

  • To: mathgroup at
  • Subject: [mg104327] Working with Lists
  • From: BenT <brtubb at>
  • Date: Wed, 28 Oct 2009 04:05:19 -0500 (EST)

I have several practical problems which I need to solve, and
understand, preferable in a generic matter well, before needing to
apply them specifically pertaining to:

using a "generic" example:


NOTE: the use of 1 thru 8 for the values is purely arbitrary so please
to do not apply any "simplifications" based on their present values.

I know have to obtain the sum of all of the elements in each of the
lists by using


and from it, I can use the Part function or "[[]]" method of obtaining
each result as needed.


What I further need are methods to:

(1) obtain separate lists, call them a and b which contain just the
1st and 2nd elements of each sublist respectively

(2) then after further, if eny modification of either list's data (a
copletely separate issue), I need to know the method of how to merge
them, and replace the original data.

I know how to apply Rule's to transform data on a list of single
elements, but not for "larger" lists.

Consider this code:



How can I apply the rd "rule" (or any Rule) to just the second
elements' 2nd values in the f list? And more importantly how are such
things done generically?

And someone please define distinct differences between:

(1) list
(2) sequence
(2) vector
(2) array
(3) matrix/table

I'm using Mathemata Version 7, but am only a "hobbies" at it. Music is
my primary interest.

--- Benjamin Tubb

  • Prev by Date: SetterBar/ButtonBar, Dynamic and the visual appearance of "selected"
  • Next by Date: Re: Re: comparable sizes across BubbleCharts
  • Previous by thread: Re: Re: SetterBar/ButtonBar, Dynamic and the visual
  • Next by thread: Re: Working with Lists