#19304: Fix hash function of rationals
-------------------------------------+-------------------------------------
       Reporter:  vdelecroix         |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  critical           |    Milestone:  sage-6.10
      Component:  misc               |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jeroen Demeyer     |    Reviewers:  Vincent Delecroix
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/jdemeyer/fix_hash_function_of_rationals|  
888430a0dd4fbfc4448d571f14ee546dab2f8ee7
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by jdemeyer):

 Replying to [comment:12 vdelecroix]:
 > One failing doctest... got
 > {{{
 > sage: beta(1/2, 3*x)
 > beta(3*x, 1/2)
 > }}}
 > on 64-bit too. Why is this related to this ticket?

 Ginac reorders the arguments to `beta()` according to their hash. Symbolic
 expressions (like `3*x`) have a "random" hash: it is different in
 different runs of Sage. I'll change the doctest to something which does
 not involve random hashes.

--
Ticket URL: <http://trac.sagemath.org/ticket/19304#comment:14>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to