Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1995
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1995

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

Search the Archive

Re: Constructing Expressions from List Elements

  • Subject: [mg2152] Re: [mg2143] Constructing Expressions from List Elements
  • From: richard at seuss.math.wright.edu (Richard Mercer)
  • Date: Tue, 10 Oct 1995 06:36:50 GMT
  • Approved: usenet@wri.com
  • Distribution: local
  • Newsgroups: wri.mathgroup
  • Organization: Wolfram Research, Inc.
  • Sender: daemon at wri.com ( )

>  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

NIntegrate[f[x,y,z],##]& @@ limits

should do the trick.

Richard Mercer


  • Prev by Date: Re: A simple swap function
  • Next by Date: Re: Constructing Expressions from List Elements
  • Previous by thread: Constructing Expressions from List Elements
  • Next by thread: Re: Constructing Expressions from List Elements