function testSecant() { $p = new Math_Polynomial('2x^2 - 3x + 10'); $secant = Math_PolynomialOp::getSecantAt($p, 1, 3.5); $this->assertEquals('6x + 3', $secant->toString()); }
function testSecant() { $p = new Math_Polynomial('2x^2 - 3x + 10'); $secant = Math_PolynomialOp::getSecantAt($p, 1, 3.5); $this->assertEquals('6x + 3', $secant->toString()); }