Dear all, but mostly Burcin,

----------------------------------------------------------------------
| Sage Version 4.6.alpha3, Release Date: 2010-10-08                  |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
**********************************************************************
*                                                                    *
* Warning: this is a prerelease version, and it may be unstable.     *
*                                                                    *
**********************************************************************
sage: type(log(1))
<type 'int'>
sage: log(1).n()
---------------------------------------------------------------------------
AttributeError: 'int' object has no attribute 'n'
sage: Integer(log(1)).n()
0.000000000000000
sage: a = Integer(1)
sage: a.log()
0
sage: type(a.log())
<type 'int'>
sage: from sage.functions.log import function_log
sage: function_log(Integer(1))
0
sage: type(function_log(Integer(1)))
<type 'int'>

Is there any way to get around this in the code, or are we pretty much
stuck with this because of how GinacFunctions work?  I'm not 100% sure
this is a bug in log; maybe instead we should extend int so that

sage: int(3).n()
AttributeError: 'int' object has no attribute 'n'
sage: n(int(3))
3.00000000000000

have the same output.

Thanks for any feedback,

- kcrisman

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to