pydsm.utilities.is_negligible

pydsm.utilities.is_negligible(x, tol=2.2204460492503131e-14)

Check if a number is close to zero.

Parameters:

x : float, complex or array_like

number to be checked

tol : float, optional

absolute tolerance. Defaults to 100 times the system epsilon.

Returns:

y : bool or array_like of bools

whether the input number is really close to zero or not.