Skip to content

fix a major inefficiency in floating point square root computation in Sage #1333

Closed

Description

@williamstein

Paul Zimmerman's benchmarks unveiled a serious slowdown in x.sqrt() for x mpfr.

This patch fixes the problem.

Component: basic arithmetic

Issue created by migration from https://trac.sagemath.org/ticket/1333

Activity

  1. added this to the sage-2.8.15 milestone on Nov 29, 2007
  2. williamstein commented on Nov 29, 2007

    @williamstein
    ContributorAuthor

    Attachment: trac1333.patch.gz

  3. sagetrac-cwitty commented on Dec 1, 2007

    sagetrac-cwittymannequin
    Mannequin
    comment:1

    (I didn't actually test it, but...) looks good to me.

  4. sagetrac-mabshoff commented on Dec 1, 2007

    sagetrac-mabshoffmannequin
    Mannequin
    comment:2

    Merged in 2.8.15.alpha1.

  5. added a commit that references this issue on Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions