Integer type (typically 4 bytes, -2,147,483,648 to 2,147,483,647)
1st Parameter
The order of the Bessel function of the first kind to be computed.
2nd Parameter Type : double
Double-precision floating point (±1.7E±308, ~15 decimal digits)
2nd Parameter
The input value for which the Bessel function of the first kind of order `n` is to be computed.
Read more about parameters of jn in parameters section
The jnfunction in C language Computes the Bessel function of the first kind of order n.
The jn function computes the Bessel function of the first kind of order n for the input x. Bessel functions are solutions to Bessel's differential equation and are important in many areas of physics and engineering. This function allows for computing Bessel functions of any integer order.
The jnfunction takes 2
parameters:
•
int `n`: The order of the Bessel function of the first kind to be computed.
•
double `x`: The input value for which the Bessel function of the first kind of order `n` is to be computed.
Computes the Bessel function of the first kind of order `n`, denoted as Jₙ(x), for the given input `x`. The Bessel function is a solution to Bessel's differential equation and is widely used in physics and engineering, particularly in problems involving wave propagation and static potentials. Returns the computed value as a `double`.
The jn function return value :
Returns the Bessel function of the first kind of order n for x
Output
This example demonstrates basic usage of jn function for a single value and order.