Skip to content

Math.Log

Name - Description Default Type
<input> The input float or sequence of floats to calculate the natural logarithm of. This value must be a positive number or sequence of positive numbers. FloatFloat2Float3Float4Color[Any]
<output> Outputs the natural logarithm of the input. FloatFloat2Float3Float4Color[Any]

This shard calculates the natural logarithm for the given input. The output is the exponent to which e must be raised to obtain the input value.

Examples

1
2
3
4
5
(float3 1.0 0.5 10.0)
(Math.Log) (Log)

(Math.Subtract (float3 0.0 -0.69314718 2.3025851)) (Math.Abs)
(IsLess (float3 1e-05 1e-05 1e-05)) (Assert.Is true true)