MathPHP\NumericalAnalysis\NumericalIntegration\BoolesRuleTest::testSubintervalsNotFactorFour PHP Method

testSubintervalsNotFactorFour() public method

    public function testSubintervalsNotFactorFour()
    {
        // The number of subintervals is not a factor of four, or
        // equivalently, the number of points minus one is not a factor of four
        $this->setExpectedException('\\Exception');
        BoolesRule::approximate([[0, 0], [4, 4], [2, 2], [6, 6], [8, 8], [10, 10]]);
    }