def test_parametric_log_deriv(): DE = DifferentialExtension(extension={"D": [Poly(1, x), Poly(1 / x, t)]}) assert parametric_log_deriv_heu( Poly(5 * t ** 2 + t - 6, t), Poly(2 * x * t ** 2, t), Poly(-1, t), Poly(x * t ** 2, t), DE, ) == (2, 6, t * x ** 5)
def test_parametric_log_deriv(): DE = DifferentialExtension(extension={"D": [Poly(1, x), Poly(1 / x, t)]}) assert parametric_log_deriv_heu( Poly(5 * t ** 2 + t - 6, t), Poly(2 * x * t ** 2, t), Poly(-1, t), Poly(x * t ** 2, t), DE ) == (2, 6, 2 * t * x ** 5)