working with nested lists
- To: mathgroup at smc.vnet.net
- Subject: [mg127691] working with nested lists
- From: Levente <lemonlev at mac.com>
- Date: Wed, 15 Aug 2012 03:34:26 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@smc.vnet.net
I'm trying to apply a transformation to a every element in a nested list. The issue is that each sub-list has a different length Example of the list: myList={{{-33.355 Degree, 278.265}, {-33.486 Degree, 155.871}, {-60.650 Degree, 27.534}}, {{-38.418 Degree, 148.054}, {-165.173 Degree, 70.342}}}; This is what I am trying and does not work: Do[ Table[{myList[[k, i, 1]], myList[k, i, 2]] (-1)/Sin[myList[[k, i, 1]]]}, {i, Length[myList[[k]]]}], {k, Length[myList]}] Any tips?
- Follow-Ups:
- Re: working with nested lists
- From: Tomas Garza <tgarza10@msn.com>
- Re: working with nested lists
- From: Sseziwa Mukasa <mukasa@gmail.com>
- Re: working with nested lists
- From: Bob Hanlon <hanlonr357@gmail.com>
- Re: working with nested lists