Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15316

Re: How to remove external parentheses from a list

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!newspump.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail
From Bill Rowe <readnews@sbcglobal.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How to remove external parentheses from a list
Date Sat, 17 Aug 2013 05:58:38 +0000 (UTC)
Sender steve@smc.vnet.net
Approved Steven M. Christensen <steve@smc.vnet.net>, Moderator
Message-ID <kun3ee$3mk$1@smc.vnet.net> (permalink)
Lines 26
Organization Time-Warner Telecom
NNTP-Posting-Date 17 Aug 2013 06:01:40 GMT
NNTP-Posting-Host 3aa799d6.news.twtelecom.net
X-Trace DXC=Mnh:dVLnfi?9cW4C:eVNG1C_A=>8kQj6=MOj3YM9`=a84d==k:3i<H>EFiONJ7[Go6djG3fT\NdF4
X-Complaints-To abuse@twtelecom.net
Xref csiph.com comp.soft-sys.math.mathematica:15316

Show key headers only | View raw


On 8/16/13 at 7:06 AM, sy81@sussex.ac.uk (Samuel Mark Young) wrote:

>I'm looking for an easy way to remove the external parentheses from
>a list.  The list contains integration variables and their
>respective limits, it currently looks something like this:

>{{x1,a,b},{x2,c,d},...,{xn,y,z}}

>However, the Integrate (or NIntegrate function) in Mathematica wants
>me to write it like this:

>{x1,a,b},{x2,c,d},...,{xn,y,z} i.e. The external parentheses have
>been removed

>I've looked around online and seen suggestions for replacing the
>curly brackets "{" with a blank space " ", or using Apply (@@) but
>can't work out the correct syntax.

I assume what you are doing is building a list of of integration
variables and limits. If so, Sequence is the function you want.
You would use it with NIntegrate as follows:

NIntegrate[expressio,
Sequence@@{{x1,a,b},{x2,c,d},...,{xn,y,z}}, options]

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: How to remove external parentheses from a list Bill Rowe <readnews@sbcglobal.net> - 2013-08-17 05:58 +0000

csiph-web