tavianator@cosmicray $ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.0, Release Date: 2017-07-21 │
│ Type "notebook()" for the browser-based notebook interface. │
│ Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
sage: version()
'SageMath version 8.0, Release Date: 2017-07-21'
sage: sage: (2*sqrt(x))^Rational(2)
---------------------------------------------------------------------------
MemoryError Traceback (most recent call last)
sage/rings/integer.pyx in sage.rings.integer.Integer.__repr__ (/build/sagemath/src/sage-8.0/src/src/build/cythonized/sage/rings/integer.c:7976)()
sage/rings/integer.pyx in sage.rings.integer.Integer.str (/build/sagemath/src/sage-8.0/src/src/build/cythonized/sage/rings/integer.c:8429)()
memory.pxd in cysignals.memory.check_malloc (/build/sagemath/src/sage-8.0/src/src/build/cythonized/sage/rings/integer.c:45920)()
MemoryError: failed to allocate 1292913990 bytes
Exception MemoryError: MemoryError('failed to allocate 1292913990 bytes',) in 'sage.libs.pynac.pynac.py_repr' ignored
Thanks for you report. It works fine for me 8.1.beta3 also on archlinux.
Can you give more precision about:
- how did you install sage 8.0?
- does the rest of Sage looks ok?