Dear William and all,
On Oct 19, 5:08 pm, William Stein <[email protected]> wrote:
> On Mon, Oct 19, 2009 at 12:22 PM, finotti <[email protected]> wrote:
>
> That's weird, since I get:
>
> wst...@sage:~$ sage
> ----------------------------------------------------------------------
> | Sage Version 4.1.2, Release Date: 2009-10-14 |
> | Type notebook() for the GUI, and license() for information. |
> ----------------------------------------------------------------------
> sage: v=[10,2,3,1,45]
> sage: max(v)
> 45
> sage: max?
Sorry... My fault. I had a "max=20", which made "max?" give me:
-----------------------
Base Class: <type 'sage.rings.integer.Integer'>
String Form: 200
Namespace: Interactive
File: /scratch/local/sage-4.1.2/local/lib/python2.6/site-
packages/sage/rings/integer.so
Docstring:
The ``Integer`` class represents arbitrary precision
integers. It derives from the ``Element`` class, so
integers can be used as ring elements anywhere in Sage.
Integer() interprets numbers and strings that begin with 0 as
octal
numbers, and numbers and strings that begin with 0x as
hexadecimal
numbers.
The class ``Integer`` is implemented in Pyrex, as a
wrapper of the GMP ``mpz_t`` integer type.
EXAMPLES::
sage: Integer(010)
8
sage: Integer(0x10)
16
sage: Integer(10)
10
sage: Integer('0x12')
18
sage: Integer('012')
10
-----------------------
Sorry about that...
Luis
--~--~---------~--~----~------------~-------~--~----~
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
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---