Skip to contents

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

Usage

nv_sine(operand)

Arguments

operand

(arrayish)
Operand.

Value

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

See also

prim_sine() 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} ]