On Thu, Oct 16, 2008 at 9:12 PM, Fredrik Johansson <[EMAIL PROTECTED]> wrote: > > On Thu, Oct 16, 2008 at 4:43 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: >> Unfortunately, I now encountered a more serious problem with x[0] and >> x._mpf_[0]. Here is how to reproduce (Kirill, is there an easier way >> to checkout the remote branch?): > >> I don't like the way I fixed that. Fredrik, do you think you could >> please look into that? I think we'll release with our old mpmath, as >> that is well tested and works. And import the new mpmath into our next >> release, so that we have enough time to discover and fix bugs. > > I don't like that fix either :-) There should be no non-tuples in there. > > The fix is that the mpmath functions mpf_gamma, mpf_pi and mpf_e > should be used instead of functions.gamma, functions.pi, functions.e.
That worked. I spent another hour fixing it, now almost everything works: http://github.com/certik/sympy/commits/mpmath4/ But now there are the following problems. 3 tests fail here: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @classmethod def summation(cls, f, points, prec, epsilon, max_level, verbose=False): """ Main summation function """ I = err = mpf(0) E for i in xrange(len(points)-1): > TypeError: object of type 'mpf' has no len() [/home/ondra/repos/sympy/sympy/mpmath/quadrature.py:119] ________________________________________________________________________________ And another serious problem is that nsimplify stopped working: __________________________ entrypoint: test_nsimplify __________________________ def test_nsimplify(): x = Symbol("x") assert nsimplify(0) == 0 assert nsimplify(-1) == -1 assert nsimplify(1) == 1 assert nsimplify(1+x) == 1+x E assert nsimplify(2.7) == Rational(27,10) > assert 10/27 == 27/10 + where 10/27 = nsimplify(2.7000000000000002) + and 27/10 = Rational(27, 10) [/home/ondra/repos/sympy/sympy/simplify/tests/test_simplify.py:266] ________________________________________________________________________________ Full py.test log attached. Ondrej --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sympy?hl=en -~----------~----~----~----~------~----~------~--~---
log
Description: Binary data
