details: http://hg.sympy.org/sympy/rev/3f7eab4594d2 changeset: 1819:3f7eab4594d2 user: Ondrej Certik <[EMAIL PROTECTED]> date: Sun Oct 19 16:15:19 2008 +0200 description: Fixes backwards incompatible changes introduced by mpmath.
There are just two, one in quadosc and the other one in nsimplify. Signed-off-by: Ondrej Certik <[EMAIL PROTECTED]> Signed-off-by: Fredrik Johansson <[EMAIL PROTECTED]> diffs (31 lines): diff -r 0ddda3e37061 -r 3f7eab4594d2 sympy/core/evalf.py --- a/sympy/core/evalf.py Sun Oct 19 16:15:19 2008 +0200 +++ b/sympy/core/evalf.py Sun Oct 19 16:15:19 2008 +0200 @@ -646,11 +646,11 @@ raise ValueError("An integrand of the form sin(A*x+B)*f(x) " "or cos(A*x+B)*f(x) is required for oscillatory quadrature") period = as_mpmath(2*S.Pi/m[A], prec+15, options) - result = quadosc(f, xlow, xhigh, period=period) + result = quadosc(f, [xlow, xhigh], period=period) # XXX: quadosc does not do error detection yet quadrature_error = MINUS_INF else: - result, quadrature_error = quadts(f, xlow, xhigh, error=1) + result, quadrature_error = quadts(f, [xlow, xhigh], error=1) quadrature_error = fastlog(quadrature_error._mpf_) finally: diff -r 0ddda3e37061 -r 3f7eab4594d2 sympy/simplify/simplify.py --- a/sympy/simplify/simplify.py Sun Oct 19 16:15:19 2008 +0200 +++ b/sympy/simplify/simplify.py Sun Oct 19 16:15:19 2008 +0200 @@ -1049,9 +1049,7 @@ mpmath.mp.dps = 15 rat = mpmath.findpoly(xv, 1) if rat is not None: - # XXX: will need to reverse rat coefficients when - # updating mpmath in sympy - return Rational(-int(rat[0]), int(rat[1])) + return Rational(-int(rat[1]), int(rat[0])) mpmath.mp.dps = prec newexpr = mpmath.identify(xv, constants=constants_dict, tolerance=tolerance, full=full) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy-commits" group. To post to this group, send email to sympy-commits@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sympy-commits?hl=en -~----------~----~----~----~------~----~------~--~---