Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cast to Expression

How do I cast a number to an Expression?

I would have assumed:

> Expression(0)
Traceback (click to the left of this block for traceback)
...
TypeError: Cannot convert sage.rings.integer.Integer to
sage.structure.parent.Parent