numpy.i0() function | Python

numpy.i0() function is the modified Bessel function of the first kind, order 0. it’s usually denoted by I0.

Syntax : numpy.i0(x)
Parameters :
x : [array_like, dtype float or complex] Argument of the Bessel function.

Return : [ndarray, shape = x.shape, dtype = x.dtype] The modified Bessel function evaluated at each of the elements of x.

Code #1 :

filter_none

edit
close

play_arrow

link
brightness_4
code

# Python program explaining
# numpy.i0() function
  
# importing numpy as geek 
import numpy as geek
  
gfg = geek.i0(0.)
  
print (gfg)

chevron_right


Output :

1.0

 
Code #2 :

filter_none

edit
close

play_arrow

link
brightness_4
code

# Python program explaining
# numpy.i0() function
  
# importing numpy as geek 
import numpy as geek
  
gfg = geek.i0([1., 2. + 3j])
  
print (gfg)

chevron_right


Output :

[ 1.26606588+0.j,  -1.24923489+0.9479838j]
My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.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.