... | @@ -25,7 +25,7 @@ This method compares the relative difference between two values: $`| (test - bas |
... | @@ -25,7 +25,7 @@ This method compares the relative difference between two values: $`| (test - bas |
|
|
|
|
|
This method is a bit more tricky. It determines approximately the number of significant digits that are taken into account when doing the comparison. This number is defined by the field `"tolerance" : [integer]`. Higher is this number, more accurate is the test. More exactly, the formula is the following:
|
|
This method is a bit more tricky. It determines approximately the number of significant digits that are taken into account when doing the comparison. This number is defined by the field `"tolerance" : [integer]`. Higher is this number, more accurate is the test. More exactly, the formula is the following:
|
|
```math
|
|
```math
|
|
-\log_{10}( | ( base / int( \log_{10}( base ) ) - ( ref / int( \log_{10}( base ) ) | <= tolerance
|
|
-\log_{10}( | ( base / int( \log_{10}( base ) ) - ( test / int( \log_{10}( base ) ) | <= tolerance
|
|
```
|
|
```
|
|
except if $`tolerance = 0`$. In this case, no difference is allowed at all.
|
|
except if $`tolerance = 0`$. In this case, no difference is allowed at all.
|
|
|
|
|
... | | ... | |