Skip to content

Math.Acos

Name Mandatory Description Default Type
⬅️ Input The input float or sequence of floats to calculate the inverse cosine of. FloatFloat2Float3Float4Color[Any]Audio
Output ➡️ Outputs the angle in radians whose cosine is the input value. FloatFloat2Float3Float4Color[Any]Audio

This shard calculates the inverse cosine of the given input (arc cosine).

Details

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

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

Examples

1
2
3
@f4(-1.0 0.0 0.5 1.0) | Math.Acos | Log
Math.Subtract(@f4(3.1415927 1.5707963 1.0471976 0.0)) | Math.Abs
IsLess(@f4(0.00001 0.00001 0.00001 0.00001)) | Assert.Is(true Break: true)

[info] [sample-wire] @f4(3.14159 1.5708 1.0472 0)