Changes between Initial Version and Version 4 of Ticket #12353
 Timestamp:
 Jan 30, 2012, 3:48:44 PM (11 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

Ticket #12353
 Property Cc robertwb was added

Ticket #12353 – Description
initial v4 1 considerthe following:1 on some machines we get the following: 2 2 {{{ 3 3 sage: RealIntervalField(53)(1) > RR(1) … … 6 6 True 7 7 }}} 8 The second answer is clearly wrong.8 The second answer {{{True}}} is clearly wrong. 9 9 10 The problem seems to be the following: the {{{_richcmp}}} function 11 from {{{structure/element.pyx}}} is called. With precision 54, the 12 call to {{{coercion_model.canonical_coercion}}} fails, then we have 13 {{{r=1}}}, the two tests around line 853 fail, and the returned value is {{{_rich_to_bool(op, r)}}} which does not depend on {{{left}}} and {{{right}}}! 14 15 Paul 10 If your machine gets the correct answer {{{False}}} in both cases, then it most probably gives: 11 {{{ 12 sage: RealIntervalField(54)(1) > RR(1) 13 True 14 sage: RealIntervalField(54)(1) > RR(1) 15 False 16 }}} 17 where the second answer {{{False}}} is wrong.