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


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

How to remove external parentheses from a list

From Samuel Mark Young <sy81@sussex.ac.uk>
Newsgroups comp.soft-sys.math.mathematica
Subject How to remove external parentheses from a list
Date 2013-08-16 10:53 +0000
Message-ID <kul0bk$rkj$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


Hello,

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.

Thanks for any help and advice!

Regards,
Sam

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


Thread

How to remove external parentheses from a list Samuel Mark Young <sy81@sussex.ac.uk> - 2013-08-16 10:53 +0000
  Re: How to remove external parentheses from a list Joe Gwinn <joegwinn@comcast.net> - 2013-08-17 05:57 +0000
    Re: How to remove external parentheses from a list Joe Gwinn <joegwinn@comcast.net> - 2013-08-20 11:36 +0000
  Re: How to remove external parentheses from a list David Bailey <dave@removedbailey.co.uk> - 2013-08-17 06:01 +0000

csiph-web