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

testNonConstantSpacingException() public method

    public function testNonConstantSpacingException()
    {
        // There is not constant spacing between points
        $this->setExpectedException('\\Exception');
        SimpsonsRule::approximate([[0, 0], [3, 3], [2, 2]]);
    }