| 1 | initial version |
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)
| 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
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.