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


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

calculation error in series

From Maurice Coderre <mauricecoderre@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject calculation error in series
Date 2012-03-24 07:04 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jkjrlc$435$1@smc.vnet.net> (permalink)

Show all headers | View raw


In[52]:= \!\(
\*UnderoverscriptBox[\(\[Sum]\), \(n = 0\), \(\[Infinity]\)]\(
FractionBox[\(1\),
SuperscriptBox[\(2\), \((n + 1)\)]] \(
\*UnderoverscriptBox[\(\[Sum]\), \(k = 0\), \(n\)]\((
SuperscriptBox[\((\(-1\))\), \(k\)] \((\((
\*FractionBox[\(n!\), \(\(\((n - k)\)!\) \(k!\)\)])\)
\*SuperscriptBox[\(E\), \(-
\*FractionBox[\(k\), \(2\)]\)]\ )\) Cos[14.134725141734695  k])\)\)\)
\)

Out[52]= 0.730559318177 + 5.55111512313*10^-17 I

In[53]:= \!\(
\*UnderoverscriptBox[\(\[Sum]\), \(n = 0\), \(\[Infinity]\)]\(
FractionBox[\(1\),
SuperscriptBox[\(2\), \((n + 1)\)]] \(
\*UnderoverscriptBox[\(\[Sum]\), \(k = 0\), \(n\)]\((
SuperscriptBox[\((\(-1\))\), \(k\)] \((\((
\*FractionBox[\(n!\), \(\(\((n - k)\)!\) \(k!\)\)])\)
\*SuperscriptBox[\(E\), \(-
\*FractionBox[\(k\), \(2\)]\)]\ )\))\)\)\)\)

Out[53]= Sqrt[E]/(1 + Sqrt[E])

Why does the insertion of a purely real trigonometric function in a
purely real infinit series, as shown above, give a complex result? Is
it the result of an accumulated imprecision in the numerical
evaluation?

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


Thread

calculation error in series Maurice Coderre <mauricecoderre@gmail.com> - 2012-03-24 07:04 +0000
  Re: calculation error in series Peter Pein <petsie@dordos.net> - 2012-03-25 05:17 +0000

csiph-web