Compare two a and b and see if the magnitude of their difference is smaller than a tolerance, taking machine epsilon*max(|a|,|b|) for their precision as the default value
Comparre two a and b and see if magnitude of their difference is smaller than a tolerance, taking machine epsilon for their precision as the default value
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| complex(kind=dp), | intent(in) | :: | a | |||
| complex(kind=dp), | intent(in) | :: | b | |||
| real(kind=dp), | intent(in), | optional | :: | tol |
Comparre two a and b and see if magnitude of their difference is smaller than a tolerance, taking machine epsilon for their precision as the default value
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=dp), | intent(in) | :: | a | |||
| real(kind=dp), | intent(in) | :: | b | |||
| real(kind=dp), | intent(in), | optional | :: | tol |