On Thu, May 22, 2008 at 1:52 PM, Rolandb <[EMAIL PROTECTED]> wrote:
>
> Tnx

We're tracking this problem here:

   http://trac.sagemath.org/sage_trac/ticket/3273

>
> On 22 mei, 07:02, "Justin C. Walker" <[EMAIL PROTECTED]> wrote:
>> 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.
>> --------
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to