Skip to content

Math.Sin

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

This shard calculates the sine 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.

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

Sin is bounded and will always return a value between -1 and 1.

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

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

Examples

1
2
3
@f3(0.0 1.0 1.5707963) | Math.Sin | Log
Math.Subtract(@f3(0.0 0.84147098 1.0)) | Math.Abs
IsLess(@f3(0.00001 0.00001 0.00001)) | Assert.Is(true Break: true)

[info] [sample-wire] @f3(0 0.841471 1)