MathPHP\NumericalAnalysis\RootFinding\FixedPointIterationTest::testFixedPointIterationExceptionNegativeTolerance PHP Метод

testFixedPointIterationExceptionNegativeTolerance() публичный Метод

    public function testFixedPointIterationExceptionNegativeTolerance()
    {
        $func = function ($x) {
            return ($x ** 4 + 8 * $x ** 3 - 13 * $x ** 2 + 96) / 92;
        };
        $tol = -1.0E-5;
        $a = 0;
        $b = 3;
        $p = 0;
        $this->setExpectedException('MathPHP\\Exception\\OutOfBoundsException');
        $x = FixedPointIteration::solve($func, $a, $b, $p, $tol);
    }