Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 8 years ago

ndomes gravatar image

It looks like sqrt in .spyx mode is c sqrt and not sage sqrt .

%cython
from sage.functions.other import sqrt as Sqrt
a = 1/Sqrt(2)
print a

output:

1/2*sqrt(2)
click to hide/show revision 2
No.2 Revision

It looks like sqrt in .spyx mode is c sqrt and not sage sqrt .

%cython
from sage.functions.other import sqrt as Sqrt
a = print 1/Sqrt(2)
print a
1/sqrt(2)

output:

1/2*sqrt(2)
0.707106781187