MathGroup Archive 2007

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

Search the Archive

Re: Outer with index in bounds

  • To: mathgroup at smc.vnet.net
  • Subject: [mg80471] Re: Outer with index in bounds
  • From: dh <dh at metrohm.ch>
  • Date: Thu, 23 Aug 2007 01:07:33 -0400 (EDT)
  • References: <fagu1f$92b$1@smc.vnet.net>


Hi,

Outer takes lists as parameter and not expressions. But you can achieve 

your goal with e.g.:

Table[f[#, i], {i, #}]& /@ Range[10]

hope this helps,Daniel



DC wrote:

> Hi all, I would like to use Outer as:

> 

> Outer[f[#1,#2]&,Range[10],Range[#1],1,1]

> 

> in order to create a list whose first element is a list of length 1, the 

> second is a list of length 2, and so on.

> More generally, I would like to use Outer with one bound depending on 

> the other as in :

> 

> Outer[f[#1,#2]&,list1,list2[#1],1,1]

> 

> Obviously none of the above works.

> Many thanks in advance for any pointers.

> -Francesco

> 




  • Prev by Date: Re: PlotStyle in version 6
  • Next by Date: Re: PlotStyle in version 6
  • Previous by thread: Re: Outer with index in bounds
  • Next by thread: Re: Outer with index in bounds