- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Return the modified Bessel function evaluated at each of the elements of x in Python
To return the modified Bessel function evaluated at each of the elements of x, use the numpy.io() method. The parameter x is an Argument of the Bessel function. The method returns the modified Bessel function evaluated at each of the elements of x.
Steps
At first, import the required libraries −
import numpy as np
Create an array using the array() method −
arr = np.array([10, 20, 30, 40, 50])
Display the array −
print("Array...
", arr)
Get the type of the array −
print("
Our Array type...
", arr.dtype)
Get the dimensions of the Array −
print("
Our Array Dimension...
",arr.ndim)
Get the shape of the Array −
print("
Our Array Shape...
",arr.shape)
To return the modified Bessel function evaluated at each of the elements of x, use the numpy.io() method −
print("Array...
", np.i0(arr))
Example
import numpy as np # Create an array using the array() method arr = np.array([10, 20, 30, 40, 50]) # Display the array print("Array...
", arr) # Get the type of the array print("
Our Array type...
", arr.dtype) # Get the dimensions of the Array print("
Our Array Dimension...
",arr.ndim) # Get the shape of the Array print("
Our Array Shape...
",arr.shape) # To return the modified Bessel function evaluated at each of the elements of x, use the numpy.io() method # The parameter x is an Argument of the Bessel function. # The method returns the modified Bessel function evaluated at each of the elements of x. print("Array...
", np.i0(arr))
Output
Array... [10 20 30 40 50] Our Array type... int64 Our Array Dimension... 1 Our Array Shape... (5,) Array... [2.81571663e+03 4.35582826e+07 7.81672298e+11 1.48947748e+16 2.93255378e+20]
- Related Articles
- Program to return number of smaller elements at right of the given list in Python
- Explain modified internal rate of return.
- Difference between internal rate of return and modified internal rate of return.
- What is Modified Internal Rate of Return (MIRR)?
- Evaluate a polynomial at points x and the shape of the coefficient array extended for each dimension of x in Python
- Evaluate a Laguerre series at points x and the shape of the coefficient array extended for each dimension of x in Python
- Evaluate a Chebyshev series at points x and the shape of the coefficient array extended for each dimension of x in Python
- Evaluate a Legendre series at points x and the shape of the coefficient array extended for each dimension of x in Python
- Evaluate a Hermite_e series at points x and the shape of the coefficient array extended for each dimension of x in Python
- Python Pandas - Return the Number of elements in the underlying Index data
- Python Pandas - Return number of unique elements in the Index object
- Evaluate a Hermite series at points x and the shape of coefficient array extended for each dimension of x in Python
- Evaluate a polynomial and every column of coefficients in r is evaluated for every element of x in Python
- Return the floor of the array elements in Numpy
- Number of elements greater than modified mean in matrix in C++

Advertisements