[GAP Forum] magnitude in GAP

Alexander Hulpke hulpke at me.com
Wed Apr 29 04:26:18 BST 2009


Dear Forum, Dear Saad Awaid,

> I am trying to write some code to  find Z(chi);
>
> where   Z(\chi ) = \{ g \in G\left| {\left| {\chi (g)} \right| =  
> \chi (1)\} } \right
>
> it seems that GAP doesn't contain function to find the magnitude  
> for  complex number?

|x|^2=x* conjugate(x), complex conjugate denoted by
GaloisCyc(x,-1);

Thus you could check whether chi[g]*GaloisCyc(chi[g],-1)=chi[1]^2

If chi is a proper class function, you also coud simply use
CenterOfCharacter
instead of writing your own function.

Best,

    Alexander Hulpke


-- Colorado State University, Department of Mathematics,
Weber Building, 1874 Campus Delivery, Fort Collins, CO 80523-1874, USA
email: hulpke at math.colostate.edu, Phone: ++1-970-4914288
http://www.math.colostate.edu/~hulpke




More information about the Forum mailing list