MathPHP\NumericalAnalysis\NumericalDifferentiation\NumericalDifferentiationTest::testSpacingNonConstant PHP Method

testSpacingNonConstant() public method

    public function testSpacingNonConstant()
    {
        // There is not constant spacing between points
        $this->setExpectedException('MathPHP\\Exception\\BadDataException');
        NumericalDifferentiation::isSpacingConstant([[0, 0], [3, 3], [2, 2]]);
    }