Branch Coverage

blib/lib/Math/Brent.pm
Criterion Covered Total %
branch 28 40 70.0


line true false branch
180 2 3 if ($fb > $fa)
207 0 2 if (($bx - $u) * ($u - $cx) > 0) { }
2 0 elsif (($cx - $u) * ($u - $ulim) > 0) { }
0 0 elsif (($u - $ulim) * ($ulim - $cx) >= 0) { }
211 0 0 if ($fu < $fc) { }
0 0 elsif ($fu > $fb) { }
232 0 2 if ($fu < $fc)
290 5 44 if abs $x - $xm <= $tol2 - 0.5 * ($b - $a)
292 39 5 if (abs $e > $tol1)
298 17 22 if ($q = 2 * ($q - $r)) > 0
304 34 0 unless (abs $p >= abs 0.5 * $q * $etemp or $p <= $q * ($a - $x) or $p >= $q * ($b - $x))
313 5 29 if ($u - $a < $tol2 or $b - $u < $tol2)
324 8 2 $x >= $xm ? :
330 39 5 abs $d >= $tol1 ? :
337 31 13 if ($fu <= $fx) { }
339 14 17 if ($u >= $x) { }
353 7 6 if ($u < $x) { }
362 7 6 if ($fu <= $fw or $w == $x) { }
6 0 elsif ($fu <= $fv or $v == $x or $v == $w) { }
376 0 5 if $iter >= $ITMAX