MathGroup Archive 2007

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

Search the Archive

conditionals on lists

  • To: mathgroup at smc.vnet.net
  • Subject: [mg79088] conditionals on lists
  • From: mausgeo at aol.com
  • Date: Wed, 18 Jul 2007 02:57:54 -0400 (EDT)

I am trying to run a simulation of a roulette game and I have created
a list of 1's and -1's to represent wins and losses. Using the Split
command I can get ordered pairs with the first coordinate being either
1 or -1 and the second coordinate being the number of successive
entries. I am having trouble applying a conditional to this new list
as I would like to perform a different function depending on the first
coordinate of the ordered pair. How do I apply a conditional to a list
of ordered pairs?



  • Prev by Date: Re: Re: integration of piecewise convex bivariate function with 6 parameters
  • Next by Date: generating non-IID random sequences
  • Previous by thread: Re: Quantum Commutator
  • Next by thread: Re: conditionals on lists