Skip to contents

Element-wise inverse cosine. You can also use acos().

Usage

nv_acos(x)

Arguments

x

(arrayish)
Input array.

Value

arrayish
Has the same shape and data type as the input.

See also

prim_acos() for the underlying primitive.

Examples

x <- nv_array(c(-1, 0, 1))
acos(x)
#> AnvlArray
#>  3.1416
#>  1.5708
#>  0.0000
#> [ CPUf32{3} ]