| Contents |
#include <codecogs/maths/special/bessel/j/j0.h>
using namespace Maths::Special::Bessel::J;
| double | J0 (double x) Bessel function of the first kind, with order zero and exponential scaling. | |
| Real | cc_J0 (Real x) This function is available as a Microsoft Excel add-in. |
| doubleJ0( | double | x | ) |
Absolute error:
arithmetic domain # trials peak rms
DEC 0, 30 10000 4.4e-17 6.3e-18
IEEE 0, 30 60000 4.2e-16 1.1e-16
#include <stdio.h> #include <codecogs/maths/special/bessel/j/j0.h> int main() { using namespace Maths::Special::Bessel::J; for(double x=0; x<6; x+=1) { double y=J0(x); printf("\n J0(%.1lf)=%lf", x,y); } return 0; }
J0(0.0)=1.000000 J0(1.0)=0.765198 J0(2.0)=0.223891 J0(3.0)=-0.260052 J0(4.0)=-0.397150 J0(5.0)=-0.177597
| x | input argument |