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