Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13314 > unrolled thread

Re: List manipulation question - 2013

Started bychristopher arthur <chris.arthur1@gmail.com>
First post2013-01-31 03:05 +0000
Last post2013-01-31 03:05 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: List manipulation question - 2013 christopher arthur <chris.arthur1@gmail.com> - 2013-01-31 03:05 +0000

#13314 — Re: List manipulation question - 2013

Fromchristopher arthur <chris.arthur1@gmail.com>
Date2013-01-31 03:05 +0000
SubjectRe: List manipulation question - 2013
Message-ID<kecn0t$ert$1@smc.vnet.net>
Lea,

You might try something like

Map[Position[list1,#]&,list2]

this will give you a list of how the two lists coincide.  It means, for 
each element in list2, find its position in list1, and give me a list of 
the positions.

Chris


Lea Rebanks a écrit :
> Dear All,
>
> I have the follow problem with the combination of a few lists.
> I shall outline the problem or what I am trying to do.
> I know that to solve this problem requires a number of processes, but I am
> not sure how to setup the coding to achieve my desired result.
> Please could someone show me the coding for this problem.
>
> The problem:-
> 1 - I have a list1 created from 24+(15*n1)        All n1 are integers
> 1,2,3,4.....to a large number of integers.
> 2 - I want to divide the list1 by 24 and create another list2 with only the
> integer results in list2.
>      Table[24 + 15*i, {i, 100}]/24  ...    so that integer results in list2
> = { 144, 264, 384, 504, 624, 744, 864, 984, 1104 }
> 3 - I have another list3 created from 12+(3*n2)   All n2 are integers
> 1,2,3,4.....to a large number of integers.
> 4 - With list3 I want to find  :-
>      (i) The integer number of n2 that either equates 12+(3*n2) = 144 or
> the next FIRST available number in list2 that meets this equality.
>  then also    (ii)The integer number(s) of n2 that equates 12+(3*n2) = 24+(15*n1) after the first equal value for say 6 repetitions.
>  then also     (iii)The integer number(s) of n1 that equates 12+(3*n2) =
> 24+(15*n1) after the first equal value for say 6 repetitions.
>
> The above example is quite simple, but I am hoping to setup the coding to
> work with other integer values instead of 3 & 15 which will present more of
> a challenge.
>
> Any help or advice greatly appreciated.
> Best regards,
> Lea...
>
>
>
>   

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web