Skip to contents

Element-wise sine. You can also use sin().

Usage

nv_sin(x)

Arguments

x

(arrayish)
Input array.

Value

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

See also

prim_sin() for the underlying primitive.

Examples

x <- nv_array(c(0, pi / 2, pi))
sin(x)
#> AnvlArray
#>   0.0000e+00
#>   1.0000e+00
#>  -8.7423e-08
#> [ CPUf32{3} ]