Re: Cascaded (Multi-range) Iterators?
- To: mathgroup at smc.vnet.net
- Subject: [mg79055] Re: Cascaded (Multi-range) Iterators?
- From: "David Park" <djmpark at comcast.net>
- Date: Tue, 17 Jul 2007 03:21:58 -0400 (EDT)
- References: <f7f2lh$o64$1@smc.vnet.net>
Table[f[x], {x, Join[Range[0, 1, 0.1], Range[2, 10], Range[20, 100, 10]]}]
--
David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/
"AES" <siegman at stanford.edu> wrote in message
news:f7f2lh$o64$1 at smc.vnet.net...
> Seems like a very useful (and feasible?) (and not too difficult)
> extension to the Iterator concept for Tables, etc., would be a cascaded
> or multi-range Iterator, e.g. something like
>
> Table[ f[x], { {x, 0, 1, 0.1}, {x, 2, 10}, {x, 20, 100, 10} } ]
>
> I often have need for a "different step sizes over different ranges"
> capability like this, and have to resort to workarounds to achieve it.
>
> [Apologies if my searches in the Help files have missed something that
> already does this.]
>