Computes a safe inverse of a number.
The number to invert.
1/x if x is nonzero, otherwise returns 1.
1/x
x
1
Computes a safe inverse of a number.