18    public function execute(
float $probability)
 
   29            $result = call_user_func($this->callback, 
$x);
 
   30            $error = 
$result - $probability;
 
   34            } elseif ($error < 0.0) {
 
   49            if (($xNew < $xLo) || ($xNew > $xHi) || (
$result == 0.0)) {
 
   50                $xNew = ($xLo + $xHi) / 2;
 
   56        if (
$i == self::MAX_ITERATIONS) {
 
An exception for terminatinating execution or to throw for unit testing.
execute(float $probability)
__construct(callable $callback)