R
Richard A. Fowell
The BesselJ function seems to calculate to less than full accuracy -
as little as 8 digits of accuracy vs. the expected 15 digits. I see
this both in Excel on my Mac and on a PC at work. This function should
produce 15 digit accuracy, as Matlab and Mathematica do.
For example, BesselJ(1.8,0) returns this value on my Macintosh Ibook
G4 ( 933 Mhz,
Mac OS version 10.3.9 running Microsoft Excel 2004 for Mac Version
11.3.7(070724):
BesselJ(1.8,0) = 0.33998 64129 60524 000 (Excel) vs.
BesselJ(1.8,0) = 0.33998 64110 42558 350 (MIT tables)
The latter value is from a handbook of tabulated Bessel functions of
18 digit
accuracy produced by MIT, and both Matlab and Mathematica agree with
the MIT
value to 15 digits of precision (which is all I would expect from
standard
IEEE floating point arithmetic - for more I would use an extended
precision library
such as the Xnumbers plugin for Excel:
http://digilander.libero.it/foxes/index.htm
Is this discrepancy universal with the Analysis ToolPak addin version
of BesselJ?
Or do some versions do better?
Are there other handy resources for an accurate BesselJ for Excel or
on the Web?
Richard A. Fowell
as little as 8 digits of accuracy vs. the expected 15 digits. I see
this both in Excel on my Mac and on a PC at work. This function should
produce 15 digit accuracy, as Matlab and Mathematica do.
For example, BesselJ(1.8,0) returns this value on my Macintosh Ibook
G4 ( 933 Mhz,
Mac OS version 10.3.9 running Microsoft Excel 2004 for Mac Version
11.3.7(070724):
BesselJ(1.8,0) = 0.33998 64129 60524 000 (Excel) vs.
BesselJ(1.8,0) = 0.33998 64110 42558 350 (MIT tables)
The latter value is from a handbook of tabulated Bessel functions of
18 digit
accuracy produced by MIT, and both Matlab and Mathematica agree with
the MIT
value to 15 digits of precision (which is all I would expect from
standard
IEEE floating point arithmetic - for more I would use an extended
precision library
such as the Xnumbers plugin for Excel:
http://digilander.libero.it/foxes/index.htm
Is this discrepancy universal with the Analysis ToolPak addin version
of BesselJ?
Or do some versions do better?
Are there other handy resources for an accurate BesselJ for Excel or
on the Web?
Richard A. Fowell