numpy.testing.assert_array_max_ulp(a,b,maxulp=1,dtype=None)[source]¶Check that all items of arrays differ in at most N Units in the Last Place.
| Parameters: | a, b : array_like
maxulp : int, optional
dtype : dtype, optional
|
|---|---|
| Returns: | ret : ndarray
|
| Raises: | AssertionError
|
See also
assert_array_almost_equal_nulpExamples
>>>a=np.linspace(0.,1.,100)>>>res=np.testing.assert_array_max_ulp(a,np.arcsin(np.sin(a)))