📖 INDEX
LOADING ENGINE...
np.sqrt()
AI & DATA SCIENCE // np-sqrt
Returns the non-negative square-root of an array, element-wise.
Syntax
res = np.sqrt(arr)Examples
Example 01Basic Usage
res = np.sqrt(arr)Best Practices
- Refer to the official NumPy documentation for deep vectorization techniques.
- Avoid writing custom Python for-loops for operations that can be vectorized with NumPy.