Skip to content

Math.Erfc

Name Mandatory Description Default Type
⬅️ Input The input float or sequence of floats to calculate the complementary error function of. This can be any real number. FloatFloat2Float3Float4Color[Any]
Output ➡️ Outputs the probability result of the complementary error function of the input. The output is always between 0 and 2. FloatFloat2Float3Float4Color[Any]

This shard calculates the complementary error function of the given input. The complementary error function is related to the probability that the absolute value of a random variable with normal distribution of mean 0 and variance 1/2 is greater than the input value.

Examples

1
2
3
@f3(0.0 1.0 2.0) | Math.Erfc | Log
Math.Subtract(@f3(1.0 0.15729920 0.004677735)) | Math.Abs
IsLess(@f3(0.00001 0.00001 0.00001)) | Assert.Is(true Break: true)

[info] [sample-wire] @f3(1 0.157299 0.00467773)