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

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

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