On May 21, 2008, at 21:14 , Roland van den Brink wrote:
> The following problem occured and I don't understand what the
> mistake is using isqrt. Please help. Thanks in advance.
> I use Sage 3.0.0. Roland
>
> sage: for n in range(1,10):
> ... print n, isqrt(n)
> 1
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/home/notebook/sage_notebook/worksheets/admin/16/code/7.py",
> line 6, in <module>
> exec compile(ur'for n in range(Integer(1),Integer(10)):\u000a
> print n, isqrt(n)' + '\n', '', 'single')
> File "/usr/local/sage/local/lib/python2.5/site-packages/sympy/
> plotting/", line 2, in <module>
>
> File "/usr/local/sage/local/lib/python2.5/site-packages/sage/misc/
> functional.py", line 956, in isqrt
> raise NotImplementedError
> NotImplementedError
This looks like a bug:
sage: for n in range(1,10):
print n, isqrt(Integer(n))
....:
1 1
2 1
3 1
4 2
5 2
6 2
7 2
8 2
9 3
isqrt() doesn't like 'int' arguments.
Thoughts?
Justin
--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds
--------
Men are from Earth.
Women are from Earth.
Deal with it.
--------
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---