On Sun, Apr 20, 2008 at 9:36 AM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > > On Fri, Apr 18, 2008 at 5:10 PM, William Stein <[EMAIL PROTECTED]> wrote: > > > > > > On Fri, Apr 18, 2008 at 4:59 AM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > > > > > > On Thu, Apr 17, 2008 at 9:24 PM, Hector Villafuerte <[EMAIL > PROTECTED]> wrote: > > > > > > > > On Thu, Apr 17, 2008 at 11:53 AM, William Stein <[EMAIL PROTECTED]> > wrote: > > > > [...] > > > > > > > > > In Sage the function is show_identifiers(). > > > > [...] > > > > > > > > Oh, I misunderstood the question then... my bad. Thanks William, > > > > > > Why not to name it the same as in Matlab? > > > > > > Ondrej > > > > Because I named it the same as in Magma! > > Haha, I didn't know that. :) > > > > Also, in retrospect, I think Magma's "ShowIdentifiers()" is a far far > > less obfuscated name than Matlab's cryptics "whos", which frankly > > looks like a spelling mistake or typo to me. > > Agree. The only disadvantage is that it takes longer to type, because > "sho<TAB>" yields > > sage: sho > show show_default show_identifiers > > so I need to type "show_i<TAB>", then <BACKSPACE> and "()<ENTER>". > Actually it also works without the backspace. >
Magma tends to have long verbose names like this. For example, to compute the charpoly of a matrix in Magma: > A := MatrixAlgebra(RationalField(), 2)![1,2,3,4]; > R<x> := PolynomialRing(RationalField()); > CharacteristicPolynomial(A); x^2 - 5*x - 2 Lots of long names. But Magma code is very readable (like Python), in my opinion. In Sage the above is: sage: a = matrix(QQ, 2, [1,2,3,4]) sage: a.charpoly() x^2 - 5*x - 2 -- William --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---