Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5768
| From | Gy Peng <hitphyopt@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | count the number of sub-list in a list |
| Date | 2011-10-21 11:29 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j7rl28$i7v$1@smc.vnet.net> (permalink) |
Dear All,
I have a list like:
{{{{-0.00201671, 0.87571, 0.482832}, {-0.839678,
0.260735, -0.476401}, {-0.543081, -0.406384,
0.734789}}, {{-0.87571, -0.00201671,
0.482832}, {-0.260735, -0.839678, -0.476401}, {0.406384, -0.543081,
0.734789}}, {{0.00201671, -0.87571,
0.482832}, {0.839678, -0.260735, -0.476401}, {0.543081, 0.406384,
0.734789}}, {{0.87571, 0.00201671, 0.482832}, {0.260735,
0.839678, -0.476401}, {-0.406384, 0.543081,
0.734789}}}, {{{0.839678, -0.260735, 0.476401}, {-0.00201671,
0.87571, 0.482832}, {-0.543081, -0.406384, 0.734789}}, {{0.260735,
0.839678, 0.476401}, {-0.87571, -0.00201671,
0.482832}, {0.406384, -0.543081, 0.734789}}, {{-0.839678,
0.260735, 0.476401}, {0.00201671, -0.87571, 0.482832}, {0.543081,
0.406384, 0.734789}}, {{-0.260735, -0.839678, 0.476401}, {0.87571,
0.00201671, 0.482832}, {-0.406384, 0.543081,
0.734789}}}, {{{0.00201671, -0.87571, -0.482832}, {0.839678, -0.260735,
0.476401}, {-0.543081, -0.406384, 0.734789}}, {{0.87571,
0.00201671, -0.482832}, {0.260735, 0.839678,
0.476401}, {0.406384, -0.543081, 0.734789}}, {{-0.00201671,
0.87571, -0.482832}, {-0.839678, 0.260735, 0.476401}, {0.543081,
0.406384,
0.734789}}, {{-0.87571, -0.00201671, -0.482832}, {-0.260735, -0.839678,
0.476401}, {-0.406384, 0.543081, 0.734789}}}, {{{-0.839678,
0.260735, -0.476401}, {0.00201671, -0.87571, -0.482832}, {-0.543081,
-0.406384,
0.734789}}, {{-0.260735, -0.839678, -0.476401}, {0.87571,
0.00201671, -0.482832}, {0.406384, -0.543081,
0.734789}}, {{0.839678, -0.260735, -0.476401}, {-0.00201671,
0.87571, -0.482832}, {0.543081, 0.406384, 0.734789}}, {{0.260735,
0.839678, -0.476401}, {-0.87571, -0.00201671, -0.482832}, {-0.406384,
0.543081, 0.734789}}}}
I consider each of {{*, *, *}, {*, *, *}, {*,*,*}} is one single element, so
how could I count how many element in the whole list? Thank you very much!
G
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
count the number of sub-list in a list Gy Peng <hitphyopt@gmail.com> - 2011-10-21 11:29 +0000 Re: count the number of sub-list in a list dimitris <dimmechan@yahoo.com> - 2011-10-22 10:13 +0000 Re: count the number of sub-list in a list Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-10-22 10:16 +0000
csiph-web