My suggestion for nth real root:


def nth_real_root(a,n):

    p = x^n - a
    L = p.roots(ring=RR,multiplicities=False)
    if L:
        return L[0]       # return L ?
    else:
        raise RuntimeError("no real root")

-- 
You received this message because you are subscribed to the Google Groups 
"sage-edu" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-edu.
For more options, visit https://groups.google.com/d/optout.

Reply via email to