Approximately equal arrays
The assert_approx_equal()
function raises an exception if two numbers are not equal up to a certain number of significant digits. The function raises an exception triggered by the following condition:
abs(actual - expected) >= 10**-(significant - 1)