snz

fun snz(x: Double): Double

Returns a small value with the same sign as x.

Function \(snz(x)\) from section VI.A of the SymForce paper for use in singularity handling. Returns a small positive value if x is non-negative, otherwise a small negative value.

Return

A small value with the same sign as x.

Parameters

x

The input value.