1 | initial version |
By explicit conversion:
sage: expr = (0.5^x).operands()[0]
sage: expr
0.500000000000000
sage: type(expr)
<type 'sage.symbolic.expression.Expression'>
As a machine double precision floating point number:
sage: RDF(expr)
0.5
As a 200 bit software floating point number:
sage: RealField(200)(expr)
0.50000000000000000000000000000000000000000000000000000000000
As a interval arithmetic 200 bit floating point number:
sage: RealIntervalField(200)(expr)
0.50000000000000000000000000000000000000000000000000000000000000?
And so on...