Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

FWIW :

sage: (x*sqrt(2)).n()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

[ Snip... ]

TypeError: cannot evaluate symbolic expression numerically
sage: (x*sqrt(2))._sympy_().n()._sage_()
1.41421356237310*x

Nevertheless, rbunrning's answer to this (close question is highly relevant

HTH,

FWIW :

sage: (x*sqrt(2)).n()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

[ Snip... ]

TypeError: cannot evaluate symbolic expression numerically
sage: (x*sqrt(2))._sympy_().n()._sage_()
1.41421356237310*x

Nevertheless, rbunrning's answer to this (close (close) question is highly relevant

HTH,

FWIW :

sage: (x*sqrt(2)).n()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

[ Snip... ]

TypeError: cannot evaluate symbolic expression numerically

indeed... But :

sage: (x*sqrt(2))._sympy_().n()._sage_()
1.41421356237310*x

Nevertheless, rbunrning's answer to this (close) question is highly relevant

HTH,