Skip to content

Commit

Permalink
std.math.exponential: Minimally relax a pow() unittest for targets wi…
Browse files Browse the repository at this point in the history
…th 64-bit real

Required since dlang#7783.
  • Loading branch information
kinke committed Jun 2, 2021
1 parent 86d586a commit 7353c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/math/exponential.d
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ if (isFloatingPoint!(F) && isIntegral!(G))

assert(pow(x, neg1) == 1 / x);

assert(isClose(pow(xd, neg2), cast(double) (1 / (x * x)), 1e-25));
assert(isClose(pow(xd, neg2), cast(double) (1 / (x * x)), 1e-15));
assert(isClose(pow(xf, neg8), cast(float) (1 / ((x * x) * (x * x) * (x * x) * (x * x))), 1e-15));

assert(feqrel(pow(x, neg3), 1 / (x * x * x)) >= real.mant_dig - 1);
Expand Down

0 comments on commit 7353c09

Please sign in to comment.