Fortran Wiki
bessel_j0

Description

bessel_j0(x) computes the Bessel function of the first kind of order 0 of x.

Standard

Fortran 2008 and later

Class

Elemental function

Syntax

result = bessel_j0(x)

Arguments

  • x - The type shall be real, and it shall be scalar.

Return value

The return value is of type real and lies in the range 0.4027...Bessel(0,x)1- 0.4027... \leq Bessel (0,x) \leq 1. It has the same kind as x.

Example

program test_besj0
  real(8) :: x = 0.0_8
  x = bessel_j0(x)
end program test_besj0

category: intrinsics