| Contents |
#include <codecogs/maths/special/bessel/j/j1.h>
using namespace Maths::Special::Bessel::J;
| double | J1 (double x) Bessel function of the first kind, with order one. | |
| Real | cc_J1 (Real x) This function is available as a Microsoft Excel add-in. |
| doubleJ1( | double | x | ) |
Relative error:
arithmetic domain # trials peak rms
DEC 0, 30 10000 4.0e-17 1.1e-17
IEEE 0, 30 30000 2.6e-16 1.1e-16
#include <stdio.h> #include <codecogs/maths/special/bessel/j/j1.h> int main() { using namespace Maths::Special::Bessel::J; for(double x=0; x<6; x+=1) { double y=J1(x); printf("\n J1(%.1lf)=%lf", x,y); } return 0; }
J1(0.0)=0.000000 J1(1.0)=0.440051 J1(2.0)=0.576725 J1(3.0)=0.339059 J1(4.0)=-0.066043 J1(5.0)=-0.327579
| x | input argument |