Ticket #9880: numerics.patch

File numerics.patch, 687 bytes (added by jpflori, 9 years ago)
  • ginac/order.cpp

    # HG changeset patch
    # User Jean-Pierre Flori <flori@enst.fr>
    # Date 1316538810 -7200
    # Node ID d4992a1547a0bca9ddc223241da166c8452d7be7
    # Parent  3e03b7d29795ff94f5f40f992ce95a2c4900ba83
    Minor fix to correctly compare numerics
    
    diff -r 3e03b7d29795 -r d4992a1547a0 ginac/order.cpp
    a b  
    183183                                                             static_cast<const fderivative&>(rh));
    184184                else
    185185                        // using GiNaC functions by default
    186                         return -lh.compare_same_type(rh);
     186                        return lh.compare_same_type(rh);
    187187               
    188188        // at present numerics are combined into overall_coefficient
    189189        // even when hold parameter is used