Skip to content

Commit da43394

Browse files
committed
simplify calculation of maximum relative error
1 parent d275f92 commit da43394

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/math/dilogMinimaxApprox.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
approx = MiniMaxApproximation[Li2x[x], {x, interval, 5, 6}, WorkingPrecision -> 100];
3030

31-
maxErr = Max @ Cases[Abs[Li2x[#] - approx[[2,1]] /. x -> #]& /@ approx[[1]], Except[Indeterminate]];
31+
maxErr = approx[[2,2]]
3232

33-
Print["max error: ", InputForm @ maxErr];
33+
Print["max rel. error: ", InputForm @ maxErr];
3434

3535
approx = PolynomialStandardForm[approx[[2,1]], x];
3636

0 commit comments

Comments
 (0)