Apply Chris's changes, including an acceptance mark

This commit is contained in:
Chris Angelico 2015-05-17 12:12:19 +10:00
parent a87f56f4fb
commit 2f9f0e42b5
1 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ Title: A Function for testing approximate equality
Version: $Revision$
Last-Modified: $Date$
Author: Christopher Barker <Chris.Barker@noaa.gov>
Status: Draft
Status: Accepted
Type: Standards Track
Content-Type: text/x-rst
Created: 20-Jan-2015
@ -391,9 +391,9 @@ Large tolerances
The most common use case is expected to be small tolerances -- on order of the
default 1e-9. However there may be use cases where a user wants to know if two
fairly disparate values are within a particular range of each other: "is a
within 200% (rel_tol = 2.0) of b? In this case, the string test would never
within 200% (rel_tol = 2.0) of b? In this case, the strong test would never
indicate that two values are within that range of each other if one of them is
zero. The strong case, however would use the larger (non-zero) value for the
zero. The weak case, however would use the larger (non-zero) value for the
test, and thus return true if one value is zero. For example: is 0 within 200%
of 10? 200% of ten is 20, so the range within 200% of ten is -10 to +30. Zero
falls within that range, so it will return True.