Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Parenthesis reduction
Replies: 3   Last Post: Jun 18, 2012 5:50 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Gerry Flanagan

Posts: 8
Registered: 9/29/11
Re: Parenthesis reduction
Posted: Jun 18, 2012 5:50 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

{a, b, c}, {d, e, f}, {g, h, i} would not be a valid Mathematica expression, it needs some sort of Head (container). What you probably mean is something like,
Apply[f,{{a, b, c}, {d, e, f}, {g, h, i}}] or equivalently
f@@ {{a, b, c}, {d, e, f}, {g, h, i}} where f is some function name.

The Apply replaces the top level List head with another Head of your choice.
Gerry F.



On 6/17/2012 3:59 AM, Mat' G. wrote:
> Which command should one use to get
> {a, b, c}, {d, e, f}, {g, h, i}
> from
> {{a, b, c}, {d, e, f}, {g, h, i}}
> ?
>
>
>






Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2013. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.