[sage-devel] Creating the (Z/5Z)^2 group in Sage : Hell among groups, parent/elements, Cartesian Products ...

2013-11-06 Thread Nathann Cohen
Helloo everybody ! Today I needed to build a cyclic group Z/nZ (and products of them), and to be able to add elements together. I screamed for help, Aladin offered his, we tried a few things and Hell followed. I report those bugs, as I know next to nothing about groups and categories, and

[sage-devel] Re: Creating the (Z/5Z)^2 group in Sage : Hell among groups, parent/elements, Cartesian Products ...

2013-11-06 Thread Volker Braun
Sounds like you want this: sage: Z5xZ5 = AdditiveAbelianGroup([5, 5]) sage: x = Z5xZ5([1,3]) sage: x (3, 1) sage: x + x (1, 2) sage: 5*x (0, 0) sage: 5*x == 0 True Note that a "presentation of a group" is actually a thing: http://en.wikipedia.org/wiki/Presentation_of_a_group On Wednesday, Nov

[sage-devel] Re: Creating the (Z/5Z)^2 group in Sage : Hell among groups, parent/elements, Cartesian Products ...

2013-11-06 Thread kcrisman
On Wednesday, November 6, 2013 12:56:07 PM UTC-5, Volker Braun wrote: > > Sounds like you want this: > > sage: Z5xZ5 = AdditiveAbelianGroup([5, 5]) > sage: x = Z5xZ5([1,3]) > sage: x > (3, 1) > sage: x + x > (1, 2) > sage: 5*x > (0, 0) > sage: 5*x == 0 > True > Related: http://ask.sagemath.org/

[sage-devel] Re: Creating the (Z/5Z)^2 group in Sage : Hell among groups, parent/elements, Cartesian Products ...

2013-11-06 Thread John H Palmieri
Two questions: - should AdditiveAbelianGroup be accessible through "groups.[TAB]"? Say as "groups.additive.AdditiveAbelianGroup"? - Why in the world are AdditiveAbelianGroupWrapperElement and AdditiveAbelianGroupWrapper (not to mention UnwrappingMorphism) in the top-level name space? That is,

Re: [sage-devel] Re: Creating the (Z/5Z)^2 group in Sage : Hell among groups, parent/elements, Cartesian Products ...

2013-11-06 Thread Vincent Delecroix
2013/11/6, John H Palmieri : > in sage.groups.additive_abelian.all? I wonder if we should have a > meta-ticket about cleaning up top-level imports... +1 But how do we do this ? It is fairly easy to list the names in the global namespace but how do we select the ones which should stay and the ones

Re: [sage-devel] Re: Creating the (Z/5Z)^2 group in Sage : Hell among groups, parent/elements, Cartesian Products ...

2013-11-06 Thread Nathann Cohen
Helloo ! > sage: Z5xZ5 = AdditiveAbelianGroup([5, 5]) Excellent ! Thaanks ! I can write my patch now ;-) Nathann -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an e

Re: [sage-devel] Re: OS X Mavericks

2013-11-06 Thread William Stein
On Mon, Nov 4, 2013 at 5:56 PM, Mike Zabrocki wrote: >[...] > After I installed the new command line tools then I was able to build from > source also for about 3 hours and then I encountered the same errors that > others are seeing here. Hi, In the interest of porting Sage to OS X 10.9, I dug u

Re: [sage-devel] Re: OS X Mavericks

2013-11-06 Thread Jean-Pierre Flori
On Wednesday, November 6, 2013 11:20:00 PM UTC+1, William wrote: > > On Mon, Nov 4, 2013 at 5:56 PM, Mike Zabrocki > > > wrote: > >[...] > > After I installed the new command line tools then I was able to build > from > > source also for about 3 hours and then I encountered the same errors

Re: [sage-devel] Re: OS X Mavericks

2013-11-06 Thread William Stein
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/6/13, 2:34 PM, Jean-Pierre Flori wrote: > > > On Wednesday, November 6, 2013 11:20:00 PM UTC+1, William wrote: >> >> On Mon, Nov 4, 2013 at 5:56 PM, Mike Zabrocki >> > wrote: >>> [...] After I installed the new command line tools then I was

[sage-devel] emacs configuration for git-sage

2013-11-06 Thread Anne Schilling
Hi! With mercurial git I had the following line in my .emacs file (add-to-list 'load-path (expand-file-name "/Applications/sage/data/emacs")) but now sage/data does not exist any longer. What should I put there? Thanks, Anne -- You received this message because you are subscribed to the Goog