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


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

Confusing Result with Series

Started byjschwab <jschwab@gmail.com>
First post2011-09-05 11:05 +0000
Last post2011-09-06 08:05 +0000
Articles 3 — 3 participants

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


Contents

  Confusing Result with Series jschwab <jschwab@gmail.com> - 2011-09-05 11:05 +0000
    Re: Confusing Result with Series "Kevin J. McCann" <kjm@KevinMcCann.com> - 2011-09-06 08:01 +0000
    Re: Confusing Result with Series "Dr. Wolfgang Hintze" <weh@snafu.de> - 2011-09-06 08:05 +0000

#4751 — Confusing Result with Series

Fromjschwab <jschwab@gmail.com>
Date2011-09-05 11:05 +0000
SubjectConfusing Result with Series
Message-ID<j42aef$rm0$1@smc.vnet.net>
Hi Mathematica Gurus,

I am seeing confusing behavior with the Series command, using
Mathematica 7.0.1 on Mac OS X.
Specifically, it is not always truncating at the order I would expect.
Here's a a simple example of the problem I'm having.

I expect that the result of a a series expansion of
\frac{x}{\sqrt{1 + \sqrt{x}}}
to first order will be
x + O(x^{3/2})
no matter how I write the input.

Instead, I see the following behavior.

In[175]:= Series[x/Sqrt[1 + Sqrt[x]], {x, 0, 1}]
Out[175]= SeriesData[x, 0, {1, Rational[-1, 2]}, 2, 4, 2]

In[176]:= Series[Sqrt[x^2/(1 + Sqrt[x])], {x, 0, 1}]
Out[176]= SeriesData[x, 0, {1}, 2, 3, 2]

Is this a known issue? Or some sort of expected behavior that I
haven't understood?
A naive Google search didn't reveal anything of particular relevance.

Thanks,
Josiah

[toc] | [next] | [standalone]


#4778

From"Kevin J. McCann" <kjm@KevinMcCann.com>
Date2011-09-06 08:01 +0000
Message-ID<j44k0a$93e$1@smc.vnet.net>
In reply to#4751
The outputs you see are the InputForm for the things you would like to 
see. To see this, highlight the square bracket on the right of the 
Out[xxx] and type ctrl-I. However, you shouldn't have to do this, unless 
you modified the Stylesheet. Not sure. Perhaps one of you aforementioned 
gurus has a thought on this.

Kevin

On 9/5/2011 7:05 AM, jschwab wrote:
> Hi Mathematica Gurus,
>
> I am seeing confusing behavior with the Series command, using
> Mathematica 7.0.1 on Mac OS X.
> Specifically, it is not always truncating at the order I would expect.
> Here's a a simple example of the problem I'm having.
>
> I expect that the result of a a series expansion of
> \frac{x}{\sqrt{1 + \sqrt{x}}}
> to first order will be
> x + O(x^{3/2})
> no matter how I write the input.
>
> Instead, I see the following behavior.
>
> In[175]:= Series[x/Sqrt[1 + Sqrt[x]], {x, 0, 1}]
> Out[175]= SeriesData[x, 0, {1, Rational[-1, 2]}, 2, 4, 2]
>
> In[176]:= Series[Sqrt[x^2/(1 + Sqrt[x])], {x, 0, 1}]
> Out[176]= SeriesData[x, 0, {1}, 2, 3, 2]
>
> Is this a known issue? Or some sort of expected behavior that I
> haven't understood?
> A naive Google search didn't reveal anything of particular relevance.
>
> Thanks,
> Josiah
>

[toc] | [prev] | [next] | [standalone]


#4786

From"Dr. Wolfgang Hintze" <weh@snafu.de>
Date2011-09-06 08:05 +0000
Message-ID<j44k80$957$1@smc.vnet.net>
In reply to#4751
Your output is the FullForm of the expected expression.

Example on my system:
In[6]:=
Series[x/Sqrt[1 + Sqrt[x]], {x, 0, 1}]
% // FullForm

Out[6]=
x - x^(3/2) / 2 + O[x]^2
SeriesData[x, 0, List[1, Rational[-1, 2]], 2, 4, 2]

That you get the FullForm immediately is probably caused by some 
configuration setting (which I don't know, however).

Hope this helps nevertheless.

Regards,
Wolfgang

"jschwab" <jschwab@gmail.com> schrieb im Newsbeitrag 
news:j42aef$rm0$1@smc.vnet.net...
> Hi Mathematica Gurus,
>
> I am seeing confusing behavior with the Series command, using
> Mathematica 7.0.1 on Mac OS X.
> Specifically, it is not always truncating at the order I would 
> expect.
> Here's a a simple example of the problem I'm having.
>
> I expect that the result of a a series expansion of
> \frac{x}{\sqrt{1 + \sqrt{x}}}
> to first order will be
> x + O(x^{3/2})
> no matter how I write the input.
>
> Instead, I see the following behavior.
>
> In[175]:= Series[x/Sqrt[1 + Sqrt[x]], {x, 0, 1}]
> Out[175]= SeriesData[x, 0, {1, Rational[-1, 2]}, 2, 4, 2]
>
> In[176]:= Series[Sqrt[x^2/(1 + Sqrt[x])], {x, 0, 1}]
> Out[176]= SeriesData[x, 0, {1}, 2, 3, 2]
>
> Is this a known issue? Or some sort of expected behavior that I
> haven't understood?
> A naive Google search didn't reveal anything of particular relevance.
>
> Thanks,
> Josiah
> 

[toc] | [prev] | [standalone]


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


csiph-web