math.J1() Function in Golang With Examples
Go language provides inbuilt support for basic constants and mathematical functions to perform operations on the numbers with the help of the math package. You can find order-one Bessel function of the first kind with the help of J1() function provided by the math package. So, you need to add a math package in your program with the help of the import keyword to access the J1() function.
func J1(a float64) float64
- If J1(±Inf), then this function will return 0.
- If J1(NaN), then this function will return NaN.
Result 1: 0.00 Result 2: 0.00 Result 3: -0.07 Result 4: NaN
0.58 + -0.10 = 0.47