MathGroup Archive 2007

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

Search the Archive

Re: Re: making a list using table but with different increment after a certain number

  • To: mathgroup at smc.vnet.net
  • Subject: [mg81566] Re: [mg81485] Re: making a list using table but with different increment after a certain number
  • From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
  • Date: Wed, 26 Sep 2007 21:57:26 -0400 (EDT)
  • References: <fd7sae$cgl$1@smc.vnet.net> <200709261029.GAA03144@smc.vnet.net>

On 26 Sep 2007, at 19:29, AES wrote:

> In article <fd7sae$cgl$1 at smc.vnet.net>,
>  sean_incali <sean_incali at yahoo.com> wrote:
>
>> I can make a list using
>>
>> Table[a, {a, 0, 100, 10}]
>>
>> gives
>>
>> {0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100}
>>
>>
>> But let's say I wanted to make a list that increment in 1 up to 10,
>> then increment in 10 onwards.
>>
>> So that after "tabling" I would get...
>>
>> {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, 40, 50, 60, 70, 80, 90,
>> 100}
>>
>> How do I accomplish this?
>
> The Iterator in your example at the top is *in essence* a List, right?
>
> So, there's no logical reason that said Iterator couldn't just *be* a
> List, or be entered as a List -- nicht wahr?
>
> It's one of the minor additions I hope will come to Mathematica  
> some day.
>


In Mathematica 6 evaluate ?Table and look at the last but one line.  
(However, this partiucular example is really too trivial for this).

Andrzej Kozlowski


  • Prev by Date: Re: Re: Fitting parameters of nonlinear diff equation system
  • Next by Date: Course: New in Mathematica 6 - Amsterdam - October 16
  • Previous by thread: Re: making a list using table but with different increment after a certain number
  • Next by thread: Re: making a list using table but with different increment after a certain number