Skip to content

Math.Tan

Name Mandatory Description Default Type
⬅️ Input The input float or sequence of floats to calculate the tangent of. FloatFloat2Float3Float4Color[Any]
Output ➡️ Outputs the tangent of the input. FloatFloat2Float3Float4Color[Any]

This shard calculates the tangent of the given input, where the input is the angle in radians.

Details

If the input value is negative, the shard will interpret them as angles measured clockwise from the positive x-axis.

Tan is a periodic function where the value repeats every 2π.

Tan is unbounded but has periodic discontinuities.

If a sequence of floats was provided as input, the shard will calculate the tanget of each element in the sequence and output a sequence.

If a sequence of vectors was provided as input, the shard will calculate the tangent of each component in each vector in the sequence and output a sequence of vectors where each component in each vector is the tangent of the corresponding component in the input sequence.

Examples

1
2
3
@f3(-1.0 0.0 1.0) | Math.Tan | Log
Math.Subtract(@f3(-1.5574077 0.0 1.5574077)) | Math.Abs
IsLess(@f3(0.00001 0.00001 0.00001)) | Assert.Is(true Break: true)

[info] [sample-wire] @f3(-1.55741 0 1.55741)