Almost equal arrays
The assert_array_almost_equal
function raises an exception if two arrays are not equal up to a specified precision. The function checks whether the two arrays have the same shape. Then, the values of the arrays are compared element by element with:
|expected - actual| < 0.5 10-decimal