Ask Your Question

nouret's profile - activity

2020-01-14 11:54:47 +0200 received badge  Student (source)
2020-01-13 17:02:39 +0200 asked a question error with mpmath.findroot on 8.9

I have ubuntu 18.04 and sage 8.9 with python3. I set:

import mpmath
mpmath.mp.prec = 10000

and I am trying solve

mpmath.findroot(lambda x: x^2 - 3, 100)

then I have an error, end of messege:

/home/nouret/SageMath/local/lib/python3.7/site-packages/mpmath/libmp/libintmath.py in numeral_python(n, base, size, digits)
156     # Divide in half
157     half = (size // 2) + (size & 1)

--> 158     A, B = divmod(n, base**half)
    159     ad = numeral(A, base, half, digits)
    160     bd = numeral(B, base, half, digits).rjust(half, "0")

SystemError: <built-in function divmod> returned a result with an error set

With prec less then 800+ change I have no error, but I need big precision.

2020-01-13 17:02:39 +0200 answered a question How can I get the Sage version 9 on ubuntu?

I have 8.9 with python3 on 18.04 & 19.09 now. Try download and build, which is the problem?