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


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

Re: concatenate matrices?

From "Nasser M. Abbasi" <nma@12000.org>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: concatenate matrices?
Date 2011-04-14 11:08 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <io6kin$ff0$1@smc.vnet.net> (permalink)
References <io6d37$dr4$1@smc.vnet.net>

Show all headers | View raw


On 4/14/2011 2:00 AM, Robert Rosenbaum wrote:
> DrMajorBob,
>
> A little off topic, but I was wondering why you suggested the prefix notation
>> Transpose@{y1, y2}
> instead of
> Transpose[{y1,y2}]
>
> I've noticed other people doing the same on this mailing list, and sometimes
>  suggesting postfix as well.  I would guess that Transpose[{y1,y2}] is more
>  readily understood by most users.  Is there a reason that you and others
>  often suggest the arguably less common prefix or postfix notations?
>

For me, sometimes I use @ for 3 main reasons:

1) If the expression has too many [[[[ ... ]]]], then using @ helps
eliminates a pair of [], making the expression easier to read.

2) typing foo@x has one less key stroke than foo[x]. So, when
my fingers are tired, I tend to use @ more ;)

3) For existing expression, if you wanted to insert a call
to a function 'foo' in the middle of it, then by writing

                .....foo@....

you do not have to worry about having to go look for where to
insert the second ']' at the other end, which will be in a place in
the middle of the expression as well.

            ...... foo[......]......

The editor can help with its highlighting the matching [], since you
first still need find the correct location to insert the right ]. In
a complicated expression, then can take bit more time.

Easier to just type foo@

As for the more easily understood part, this is all a matter of time.
With time, you'll find @ just as easy to look at as [...]


--Nasser

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


Thread

Re: concatenate matrices? Robert Rosenbaum <robertr@math.uh.edu> - 2011-04-14 09:00 +0000
  Re: concatenate matrices? "Nasser M. Abbasi" <nma@12000.org> - 2011-04-14 11:08 +0000
    Re: concatenate matrices? Helen Read <readhpr@gmail.com> - 2011-04-15 07:54 +0000

csiph-web