Ticket #10956: no_maxima.patch

File no_maxima.patch, 1.0 KB (added by tkluck, 10 years ago)
  • sage/symbolic/expression.pyx

    # HG changeset patch
    # User Timo Kluck <tkluck@infty.nl>
    # Date 1300383033 -3600
    # Node ID 54714710df7a5df072aa8bde3e11efb484ba9353
    # Parent  85fcf9f1992a8d9a38df4b58243e83b583d8487d
    Do not use maxima for comparisons (hack!)
    
    diff -r 85fcf9f1992a -r 54714710df7a sage/symbolic/expression.pyx
    a b  
    17071707            # associated with different semantics, different
    17081708            # precision, etc., that can lead to subtle bugs.  Also, a
    17091709            # lot of basic Sage objects can't be put into maxima.
     1710            # patch by Timo: Maxima is too slow. We return the correct result on
     1711            # an open dense subset.
     1712            if self.operator() == operator.eq:
     1713                return False
     1714            elif self.operator() == operator.ne:
     1715                return True
     1716
    17101717            from sage.symbolic.relation import test_relation_maxima
    17111718            return test_relation_maxima(self)
    17121719