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 result is an exception that is triggered by the condition:
abs(actual - expected) >= 10**-(significant - 1)