Skip to contents

Element-wise tangent. You can also use tan().

Usage

nv_tan(operand)

Arguments

operand

(arrayish)
Operand.

Value

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

See also

prim_tan() for the underlying primitive.

Examples

x <- nv_array(c(0, 0.5, 1))
tan(x)
#> AnvlArray
#>  0.0000
#>  0.5463
#>  1.5574
#> [ CPUf32{3} ]