LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 07-03-2017, 04:50 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Multiplying permutations with GAP?


Is anyone familiar with the GAP system for computational discrete algebra? In the affirmative case, I would like to know how to multiply permutations. I could learn how to do it by reading the manual but that would involve several weeks, thanks.
 
Old 07-04-2017, 09:20 PM   #2
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Not familiar with the GAP system, but being curious I took a look at the docs. Multiplying simple permutations is pretty straight forward.

Docs: https://www.gap-system.org/Manuals/d...66C8707B5DE10A

Example from here: https://math.stackexchange.com/quest...yclic-notation
Code:
gap> a := (1,3,5,2);
(1,3,5,2)
gap> b := (2,5,6);
(2,5,6)
gap> c := (1,6,3,4);
(1,6,3,4)
gap> Display(b*a);;
(1,3,5,6)
gap> Display(c*a);;
(1,6,5,2)(3,4)
And reading commands from a file:
Code:
$ cat perms.g
a := (1,3,5,2);
b := (2,5,6);
c := (1,6,3,4);
Display(b*a);;
Display(c*a);;
Code:
gap> Read("perms.g");
(1,3,5,6)
(1,6,5,2)(3,4)
Please post an example of what you are trying to do.
 
Old 07-05-2017, 07:52 PM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Very simple. There's a problem: Prove every element of A_5, the alternate group of order 5, is a commutator. A_5 has only three conjugacy classes, A, B and C: (ij)(kl), (ijk) and (ijklm), plus (1) of course. In internet I saw them all three written as commutators. Well, that's a straightforward proof, but how do you guess the commutators? Instead I did the following: take one class, say that to which (ijl) belongs, that is, the class of all 3-cycles, which is B above. Certainly, x^{-1}x^g, where x^g is x conjugated by g, is a commutator. Now as x sweeps A, x will sweep A too, hummm... I think I made a mistake. x --> x^g is not a bijection for g fixed.

Never mind. I want to send x^{-1}x^g, for every x in A, to a set, say set Ma. Do the same with B and C, creating Mb and Mc. And then ask the program what the cardinal of Ma U Mb U Mc is (U stands for union). I don't think that is very difficult to do, is it?

Last edited by stf92; 07-05-2017 at 07:53 PM.
 
Old 07-06-2017, 01:04 PM   #4
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Well, that's beyond my meager math skills.

Maybe someone will be along to help.
 
Old 07-06-2017, 04:50 PM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thanks anyway.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] C: Multiplying a lot of characters Budalas Programming 5 01-15-2017 07:44 AM
LXer: The hacker 'skills gap' may be more of a strategy gap LXer Syndicated Linux News 0 09-04-2014 06:41 PM
[SOLVED] Multiplying two files where one file have only one cell with awk astroumut Linux - Newbie 2 12-20-2012 09:56 AM
KAudiocreator is multiplying selected tracks and then shutting down on its own rjohnson244 Linux - Software 0 06-30-2005 07:30 AM
OO.org calc not multiplying my excel file np complete Linux - Software 0 10-15-2004 10:14 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 12:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration