... | ... | @@ -23,7 +23,11 @@ This method compares the relative difference between two values: $`| (test - bas |
|
|
|
|
|
##### "method": "power"
|
|
|
|
|
|
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: `-log10(|(base/int(log10(base))-(ref/int(log10(base))|<=tolerance` except if `tolerance=0`. In this case, no difference is allowed at all.
|
|
|
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
|
|
|
-\log_{10}( | ( base / \int( \log_{10}( base ) ) - ( ref / \int( \log_{10}( base ) ) | <= tolerance
|
|
|
```
|
|
|
except if $`tolerance = 0`$. In this case, no difference is allowed at all.
|
|
|
|
|
|
##### "method": "diff"
|
|
|
|
... | ... | |