Opened 8 years ago

Last modified 6 years ago

#16397 closed defect

Symbolic cmp — at Version 1

Reported by: vbraun Owned by:
Priority: critical Milestone: sage-7.1
Component: symbolics Keywords:
Cc: vdelecroix, mmezzarobba, jpflori Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by vbraun)

In the symbolic ring, cmp implements the print comparison which is probably not what you envisioned:

sage: cmp(1, sqrt(2))     # mathematically correct, uses rich comparison
sage: cmp(SR(1), sqrt(2)) # unexpectedly, you get the print sort order

Change History (1)

comment:1 Changed 8 years ago by vbraun

  • Component changed from PLEASE CHANGE to symbolics
  • Description modified (diff)
  • Type changed from PLEASE CHANGE to defect
Note: See TracTickets for help on using tickets.