sqrt#

rbc.stdlib.elementwise_functions.sqrt(x)#

Calculates the principal square root for each element x_i of the input array x.

Examples

>>> from rbc.stdlib import array_api
>>> @heavydb('double(double)')
... def array_api_sqrt(x):
...     return array_api.sqrt(x)
>>> array_api_sqrt(4.0).execute()
2.0

Array-API ‘sqrt’ doc