Changes between Initial Version and Version 1 of Ticket #9129, comment 28


Ignore:
Timestamp:
01/31/14 06:08:15 (6 years ago)
Author:
ryan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9129, comment 28

    initial v1  
    26262.sqrt() calls the sqrt() method of the Integer class.
    2727sqrt()
    28 eventually sage.functions.other._do_sqrt() is called.  If _do_sqrt is passed a precision argument, everything works fine.  The memory leak seems to occur when no precision is set.  Something about the variable one_half seems to throw a kink in things.
     28eventually sage.functions.other._do_sqrt() is called.  If _do_sqrt is passed a precision argument, everything works fine.  The memory leak seems to occur when no precision is set.  Something about the variable one_half in _do_sqrt() seems to throw a kink in things.
    2929
    3030Recap: If any precision is set, then there is no memory leak (2.sqrt(prec=52) == no memory leak)