MathPHP\NumericalAnalysis\NumericalIntegration\SimpsonsRuleTest::testSubintervalsNotEvenException PHP Method

testSubintervalsNotEvenException() public method

    public function testSubintervalsNotEvenException()
    {
        // There are not even even number of subintervals, or
        // equivalently, there are not an add number of points
        $this->setExpectedException('\\Exception');
        SimpsonsRule::approximate([[0, 0], [4, 4], [2, 2], [6, 6]]);
    }