Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace assert with the difference of values
Use math.isclose() to check whether two numbers are considered close. The function already takes into account the absolute values of the given numbers. The following formula is used to compare the values: abs(a-b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol) source : https://docs.python.org/3/library/math.html#math.isclose Conclusion: changes that meet the code review condition
- Loading branch information