Learn and Learn

Learn And Learn - great place for tutorials, references and how-to

GoLang – Find Order-Zero Bessel – J0() Function – Examples & Explanation

J0() function is used to find the order-zero Bessel function of the first kind in Go language. The standard math package of Go programming language has J0() function.

Syntax of J0() Function in Go Language

The syntax of J0() function in Go Language is:

Note: float64 is a data type in Go language which has IEEE-754 64-bit floating-point numbers.
Special cases are:
J0(±Inf) = 0
J0(0) = 1
J0(NaN) = NaN


Parameters of J0() Function in Go Language

x – Where x is any Valid float64 Input value. This parameter is required.


Error Handling

If the x parameter is not a number (numeric value) J0() function returns an error .
If there is no argument (x – input value) passes to the function, then the compiler will produce an error.


Return Value of J0() Function in Go

J0() function will return the order-zero Bessel function of the first kind.


GoLang J0() Function Example 1



GoLang J0() Function Example 2



GoLang J0() Function Example 3



LearnAndLearn.com © 2018 - All rights reserved