MathGroup Archive 1995

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

Search the Archive

Re: Constructing Expressions from List Elements

  • To: mathgroup at smc.vnet.net
  • Subject: [mg2153] Re: [mg2143] Constructing Expressions from List Elements
  • From: Lou Talman <me at talmanl.mscd.edu>
  • Date: Tue, 10 Oct 1995 02:37:01 -0400

In[1]:=
  q = ##&
Out[1]=
  ##1 &
In[2]:=
  limits = {{x, 0, 1}, {y, -Infinity, Infinity}, {z, 0, 1}}
Out[3]=
  {{x, 0, 1}, {y, -Infinity, Infinity}, {z, 0, 1}}
In[4]:=
   Integrate[f[x, y, z], Apply[q, limits]]
Out[5]=
   Integrate[f[x, y, z], {x, 0, 1}, {y, -Infinity, Infinity}, {z, 0, 1}]

--Lou Talman

Begin forwarded message:

Date: Wed, 4 Oct 1995 01:58:13 -0400
From: brianb at dendrite.cs.colorado.edu (Brian Bonnlander)
Subject: [mg2143] Constructing Expressions from List Elements
Organization: University of Colorado, Boulder
To: mathgroup at smc.vnet.net


I have a list of integration limits that I would like to incorporate into
an NIntegrate[] expression.  I don't know the proper syntax for  
accomplishing
this. 


For example, I would like to integrate f[x,y,z] where the integration  
limits
are contained in a list *limits*, expressed perhaps as
limits = {{x, 0, 1}, {y, -Infinity, Infinity}, {z, 0, 1}}.    


The statement I would like to construct is 


NIntegrate[f[x,y,z], {x, 0, 1}, {y, -Infinity, Infinity}, {z, 0, 1}] .


How do I remove the outer list braces for *limits* so that I can construct
this statement?


Thanks in advance,

--Brian




  • Prev by Date: MMA movie with sound to QT
  • Next by Date: RE: Long filenames
  • Previous by thread: Re: Constructing Expressions from List Elements
  • Next by thread: Re: Constructing Expressions from List Elements