MathGroup Archive 2003

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

Search the Archive

Usage of "//" Operator

  • To: mathgroup at smc.vnet.net
  • Subject: [mg45249] Usage of "//" Operator
  • From: Harold.Noffke at wpafb.af.mil (Harold Noffke)
  • Date: Wed, 24 Dec 2003 04:35:51 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hello.

The following code will produce the result of "beheading" MatrixForm
from a 10x10 nested List of "0" elements ...

    [1]  tb = Table[0, {i, 1, 10}, {j, 1, 10}] // MatrixForm;
Extract[tb, {1}]

However, if I change [1] to include a second "//" to accomplish the
same thing, I get this ...

    [2]  tb = Table[0, {i, 1, 10}, {j, 1, 10}] // MatrixForm //
Extract[<?>, {1}]

This does not work at all, no matter what I use to replace the "<?>",
which is just my ad-hoc symbol for, "I don't know what to put here."

When I look in the Mathematica index of Operator Input Forms, I find
...

    [3]  expr1 // expr2 == expr2[expr1]

The "==" in [3] is another ad-hoc symbol of mine, which means Operator
Form "is the same as" FullForm.

Now we get to my puzzlement.  If expr2 takes multiple arguments, how
do we denote the results of evaluating expr1, as in my "<?>" in [2]?

Thanks for any help or clarifications on this.  My best guess at the
moment is that Mathematica has no way to do this, which would make
"expr1 // expr2" be NOT fully equivalent to "expr2[expr1]".

Harold


  • Prev by Date: Re: how to 'edit' MatrixForm output to create a new matrix?
  • Next by Date: RE: Drawing Polygons
  • Previous by thread: Re: How to copy pattern from one expression to another?
  • Next by thread: Re: Usage of "//" Operator