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


Groups > comp.soft-sys.math.mathematica > #2626 > unrolled thread

Re: Series[log[x], {x, 0, 3}]

Started byBill Rowe <readnews@sbcglobal.net>
First post2011-05-23 10:24 +0000
Last post2011-05-24 09:59 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: Series[log[x], {x, 0, 3}] Bill Rowe <readnews@sbcglobal.net> - 2011-05-23 10:24 +0000
    Re: Series[log[x], {x, 0, 3}] Helen Read <readhpr@gmail.com> - 2011-05-24 09:59 +0000

#2626 — Re: Series[log[x], {x, 0, 3}]

FromBill Rowe <readnews@sbcglobal.net>
Date2011-05-23 10:24 +0000
SubjectRe: Series[log[x], {x, 0, 3}]
Message-ID<irdcl9$3m1$1@smc.vnet.net>
On 5/22/11 at 6:55 AM, hszhao.cn@gmail.com (Hongsheng Zhao) wrote:

>On 05/21/2011 01:06 PM, DrMajorBob wrote:
>>Series[Log@x, {x, 1, 3}]

>What does the @ sign mean in the above formula?

Log@x means Log[x]. Both notations do the same thing.

>Why not you use the following form:

>Series[Log[x], {x, 1, 3}]

While I cannot speak for DrMajorBob, my reason for using the
notation f@x rather than f[x] is primarily readability. Constrast

Sqrt[Abs[Sin[x]]]

with Sqrt[Abs@Sin@x]

Both do the same, but for me, it is easier to see what the
second form does than the first. Deeply nested brackets are more
difficult for me to read. And there is the additional factor of
less typing required for the second form.

[toc] | [next] | [standalone]


#2680

FromHelen Read <readhpr@gmail.com>
Date2011-05-24 09:59 +0000
Message-ID<irfvir$bv8$1@smc.vnet.net>
In reply to#2626
On 5/23/2011 6:24 AM, Bill Rowe wrote:
> On 5/22/11 at 6:55 AM, hszhao.cn@gmail.com (Hongsheng Zhao) wrote:
>
> While I cannot speak for DrMajorBob, my reason for using the
> notation f@x rather than f[x] is primarily readability. Constrast
>
> Sqrt[Abs[Sin[x]]]
>
> with Sqrt[Abs@Sin@x]
>
> Both do the same, but for me, it is easier to see what the
> second form does than the first. Deeply nested brackets are more
> difficult for me to read. And there is the additional factor of
> less typing required for the second form.

Each to his/her own. Personally I far prefer the nested brackets, which 
to me is more readable -- it's closer to familiar written mathematical 
notation, and it's clear where each function ends.

And I don't see how the @ sign results in any less typing.

@  requires pressing two keys simultaneously, Shift+2

[ ] requires two keys (one at a time), the [ and ]
or two keys simultaneously Alt+]  to get matched brackets


-- 
Helen Read
University of Vermont

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web