BESSEL_YN(3) - [MATHEMATICS] Bessel function of the second kind
result = bessel_yn(n, x)
elemental real(kind=KIND) function bessel_yn(n,x)integer(kind=**),intent(in) :: n real(kind=KIND),intent(in) :: x
o N is integer o X is real o The return value has the same type and kind as X. result = bessel_yn(n1, n2, x)real(kind=KIND) function bessel_yn(n1, n2, ,x)
integer(kind=**),intent(in) :: n1 integer(kind=**),intent(in) :: n2 real(kind=KIND),intent(in) :: x
o N1 is integer o N2 is integer o X is real o The return value has the same type and kind as X.
BESSEL_YN(N, X) computes the Bessel function of the second kind of order N of X.
BESSEL_YN(N1, N2, X) returns an array with the Bessel function|Bessel functions of the first kind of the orders N1 to N2.
o N : Shall be a scalar or an array of type integer and non-negative. o N1 : Shall be a non-negative scalar of type integer and non-negative. o N2 : Shall be a non-negative scalar of type integer and non-negative. o X : A real non-negative value. Note BESSEL_YN(N1, N2, X) is not elemental, in which case it must be a scalar.
The result value of BESSEL_YN (N, X) is a processor-dependent approximation to the Bessel function of the second kind and order N of X.
The result of BESSEL_YN (N1, N2, X) is a rank-one array with extent MAX (N2-N1+1, 0). Element i of the result value of BESSEL_YN (N1, N2, X) is a processor-dependent approximation to the Bessel function of the second kind and order N1+i-1 of X.
Sample program:
program demo_bessel_yn use, intrinsic :: iso_fortran_env, only : real32, real64, real128 implicit none real(kind=real64) :: x = 1.0_real64 write(*,*) x,bessel_yn(5,x) end program demo_bessel_ynResults:
> 1.0000000000000000 -260.40586662581222
Fortran 2008
BESSEL_J0(3), BESSEL_J1(3), BESSEL_JN(3), BESSEL_Y0(3), BESSEL_Y1(3)
Fortran intrinsic descriptions
Nemo Release 3.1 | bessel_yn (3fortran) | November 02, 2024 |