Difference between revisions of "File:Matbug01.jpg"

From TORI
Jump to navigation Jump to search
(Importing image file)
 
 
Line 1: Line 1:
  +
Bug of the [[Mathematica]] routine [[Series]] at calculation of asymptotic expansion of the [[Bessel function]].
Importing image file
 
  +
  +
==Generator of image==
  +
  +
A = Series[BesselJ[0, x] Sqrt[Pi/2] x^(5/2)/(1 + x^2), {x, Infinity, 4}]
  +
  +
TeXForm[A]
  +
  +
B = Series[BesselJ[0, Sqrt[x]] Sqrt[Pi x^(5/2)/2]/(1 + x), {x, Infinity, 2}]
  +
  +
TeXForm[B]
  +
  +
==Output==
  +
  +
$\left(-\frac{1}{8 x}+\frac{203}{1024
  +
x^3}+O\left(\left(\frac{1}{x}\right)^4\right)\right)
  +
\sin \left(\frac{\pi
  +
}{4}-x\right)+\left(1-\frac{137}{128
  +
x^2}+O\left(\left(\frac{1}{x}\right)^3\right)\right)
  +
\cos \left(\frac{\pi }{4}-x\right)$
  +
  +
$\left(-\frac{\sqrt{\frac{1}{x}}}{8}+\frac{1}{8}
  +
\left(\frac{1}{x}\right)^{3/2}+O\left(\left(\frac{1}{x
  +
}\right)^2\right)\right) \sin \left(\frac{\pi
  +
}{4}-\sqrt{x}\right)+\left(1-\frac{137}{128
  +
x}+O\left(\left(\frac{1}{x}\right)^2\right)\right)
  +
\cos \left(\frac{\pi }{4}-\sqrt{x}\right)$
  +
  +
==References==
  +
<references/>
  +
  +
[[Category:Asymptotic expansion]]
  +
[[Category:Bessel function]]
  +
[[Category:Bug]]
  +
[[Category:Mathematica]]

Latest revision as of 08:42, 1 December 2018

Bug of the Mathematica routine Series at calculation of asymptotic expansion of the Bessel function.

Generator of image

A = Series[BesselJ[0, x] Sqrt[Pi/2] x^(5/2)/(1 + x^2), {x, Infinity, 4}]

TeXForm[A]

B = Series[BesselJ[0, Sqrt[x]] Sqrt[Pi x^(5/2)/2]/(1 + x), {x, Infinity, 2}]

TeXForm[B]

Output

$\left(-\frac{1}{8 x}+\frac{203}{1024

  x^3}+O\left(\left(\frac{1}{x}\right)^4\right)\right)
  \sin \left(\frac{\pi
  }{4}-x\right)+\left(1-\frac{137}{128
  x^2}+O\left(\left(\frac{1}{x}\right)^3\right)\right)
  \cos \left(\frac{\pi }{4}-x\right)$

$\left(-\frac{\sqrt{\frac{1}{x}}}{8}+\frac{1}{8}

  \left(\frac{1}{x}\right)^{3/2}+O\left(\left(\frac{1}{x
  }\right)^2\right)\right) \sin \left(\frac{\pi
  }{4}-\sqrt{x}\right)+\left(1-\frac{137}{128
  x}+O\left(\left(\frac{1}{x}\right)^2\right)\right)
  \cos \left(\frac{\pi }{4}-\sqrt{x}\right)$

References

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current06:13, 1 December 2018Thumbnail for version as of 06:13, 1 December 20181,165 × 872 (272 KB)Maintenance script (talk | contribs)Importing image file

The following page uses this file:

Metadata