Changeset 7521:0df9dbbf5c30


Ignore:
Timestamp:
12/02/07 15:02:12 (6 years ago)
Author:
mabshoff@…
Branch:
default
Message:

Fix the last of the numerical noise issue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sage/rings/polynomial/complex_roots.py

    r7520 r7521  
    299299        ...       if tiny(x.real()): return CIF(0, x.imag()) 
    300300        sage: rts = complex_roots(p); type(rts[0][0]), map(smash, rts) 
    301         (<type 'sage.rings.complex_interval.ComplexIntervalFieldElement'>, [[1.6180339887498944 .. 1.6180339887498952]*I, [-1.6180339887498952 .. -1.6180339887498944], [0.61803398874989468 .. 0.61803398874989502], [-0.61803398874989502 .. -0.61803398874989468]*I]) 
     301        (<type 'sage.rings.complex_interval.ComplexIntervalFieldElement'>, [[1.618033988749894... .. 1.6180339887498952]*I, [-1.6180339887498952 .. -1.6180339887498944], [0.61803398874989468 .. 0.61803398874989502], [-0.61803398874989502 .. -0.61803398874989468]*I]) 
    302302        sage: rts = complex_roots(p, retval='algebraic'); type(rts[0][0]), map(smash, rts) 
    303303        (<class 'sage.rings.qqbar.AlgebraicNumber'>, [[1.6180339887498946 .. 1.6180339887498950]*I, [-1.6180339887498950 .. -1.6180339887498946], [0.61803398874989479 .. 0.61803398874989491], [-0.61803398874989491 .. -0.61803398874989479]*I]) 
Note: See TracChangeset for help on using the changeset viewer.