Question: YOU MUST USE PYTHON Modify the cell below to define a function that determines whether a is a sufficiently close approximation of b if we
YOU MUST USE PYTHON
Modify the cell below to define a function that determines whether a is a sufficiently close approximation of b if we require an absolute error of at most tol and returns True if a is sufficiently close to b, and False otherwise. The cell below that one tests this function with two numbers a=12801.092382039847 and b=12801.092372039847, and tol=0.00001. \# Modify the following function to return **True** if the number a==b at the precision tol, otherwise return **False** def CheckEquivalence()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
