I tried to calculate the following expression in GAP, but failed:
gap> E(-3);
Error, E: <n> must be a positive small integer (not the integer -3)
not in any function at *stdin*:49
type 'quit;' to quit to outer loop
So, how can I compute the expression like exp(2πi/-3) in GAP?
EDIT: Thank you, MathGeek, I figured out the following expression based on your clues:
gap> Cos(-2* FLOAT.PI/3);
-0.5
gap> Sin(-2* FLOAT.PI/3);
-0.866025
So, $e^{{2\pi i}/3}$ should be expressed as follows:
gap> [Cos(-2* FLOAT.PI/3), Sin(-2* FLOAT.PI/3)];
[ -0.5, -0.866025 ]
Regards, HZ
E(-3)directly. – Hongyi Zhao May 14 '22 at 14:33Cosetc. are only approximations of the real values by necessity. As such, these values are useless for e.g. working with representation. – Max Horn May 14 '22 at 23:41