Answers for "numpy square root"

1

numpy sqrt

Return the non-negative square-root of an array, element-wise.

// Examples
>>> np.sqrt([1,4,9])
array([ 1.,  2.,  3.])

>>> np.sqrt([4, -1, -3+4J])
array([ 2.+0.j,  0.+1.j,  1.+2.j])

>>> np.sqrt([4, -1, np.inf])
array([ 2., nan, inf])
Posted by: Guest on November-24-2021
0

numpy square root

import numpy
numpy.sqrt(16)  # output: 4.0
Posted by: Guest on March-24-2022
0

square root in python numpy

'''numpy. sqrt(array[, out]) function is used to 
determine the positive square-root of 
an array, element-wise.'''
Posted by: Guest on April-02-2022

Python Answers by Framework

Browse Popular Code Answers by Language