In Mathematics, the differential equation,
is of particular importance. The solution of the equation is a function of the parameter . For integral and half-integral values of , the solutions of particular interest and are called as Cylindrical Bessel’s Functions, named after the famous German mathematician, Friedrich Wilhelm Bessel. The reason for the requirement of to be integral or half-integral will be clear in the explanation given below.
Since this is a second-order differential equation, there must be two linearly independent solutions, called as the first kind and the second kind. Thus, the differential equation can be solved by hand using the Frobenius Method. Bessel functions of the first kind, for complex arguments , are called Modified Bessel Functions of the first kind and are denoted by . The application of the method produces an infinite series containing terms of and , given by,
Since the expression contains Gamma Function, which can only be calculated for integral and half-integral values, thus the parameter must be integral or half-integral.
C++17 (GCC 7.1) Standard Library
cmath gives functions which compute the value of the Cylindrical Bessel’s Function of the first kind
(std::cyl_bessel_j) (not discussed here, but is very similar to what we have discussed) and the value of Regular Modified Bessel Functions
(std::cyl_bessel_i). Both have appreciable accuracy for small inputs and can be used in various engineering applications.
Input: x = 2.798465, v = 0
Input: x = 3.04513, v = 0.5
Note: The following source code should only be run on C++17 and above. The running sample of the given code can be checked here. To run for a different input, please visit the link and click “Edit” in the bottom right corner.
The answer by function for Regular_Modified_Bessel_Function (0.000000000000000, 2.798465000000000) = 4.152234090041574 ans_by_expansion till term k = 0 is 1.000000000000000 ans_by_expansion till term k = 1 is 2.957851589056250 ans_by_expansion till term k = 2 is 3.916147300248771 ans_by_expansion till term k = 3 is 4.124614053687001 ans_by_expansion till term k = 4 is 4.150123238967278 ans_by_expansion till term k = 5 is 4.152120966924739 ans_by_expansion till term k = 6 is 4.152229612892962 ans_by_expansion till term k = 7 is 4.152233953968095 ans_by_expansion till term k = 8 is 4.152234086767796 ans_by_expansion till term k = 9 is 4.152234089977698 Absolute Error in answer by both the methods is = 0.000000000063876
- Find an array of size N having exactly K subarrays with sum S
- Find minimum value of y for the given x values in Q queries from all the given set of lines
- Find Kth number from sorted array formed by multiplying any two numbers in the array
- Minimum number of cuts required to pay salary from N length Gold Bar
- Sum of Maximum and Minimum prime factor of every number in the Array
- Find K such that changing all elements of the Array greater than K to K will make array sum N
- Pair of integers (a, b) which satisfy the given equations
- Largest Divisor for each element in an array other than 1 and the number itself
- Given a number N in decimal base, find the sum of digits in any base B
- Find the Nth digit from right in base B of the given number in Decimal base
- Vector of Vectors in C++ STL with Examples
- Find Nth term of the series 2, 3, 10, 15, 26....
- Find the Nth term in series 12, 35, 81, 173, 357, ...
- Find Nth term of the series 4, 2, 2, 3, 6, ...
- Program to print the given digit in words
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.