Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg81522] Re: making a list using table but with different increment after
  • From: Szabolcs Horvát <szhorvat at gmail.com>
  • Date: Wed, 26 Sep 2007 06:48:41 -0400 (EDT)
  • References: <fd7sae$cgl$1@smc.vnet.net>

sean_incali 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?

For this specific example I would use
Range[0, 9]~Join~Range[10, 100, 10]

-- 
Szabolcs


  • Prev by Date: Re: Group opener disappearing with Textbook style
  • Next by Date: Re: Dynamically changing 2 interdependent variables.
  • Previous by thread: Re: making a list using table but with different increment after
  • Next by thread: Re: making a list using table but with different increment after