1 | initial version |
When you define A
, the (1,4)(2,3)
looks using the tuple (1,4)
as a function to be called at (2,3)
, which explains your error.
If you want A
be a list of elements of G
you must make it explicit:
sage: A=[G((1,2)), G((1,3,2)), G((1,4)), G([(1,4),(2,3)]),G((2,4)),G((2,4,3)),G((3,4)),G((2,3,4))]
sage: A
[(1,2), (1,3,2), (1,4), (1,4)(2,3), (2,4), (2,4,3), (3,4), (2,3,4)]
Then, you can do:
sage: b=[G((1,5))*a for a in A]
sage: b
[(1,5,2),
(1,5,3,2),
(1,5,4),
(1,5,4)(2,3),
(1,5)(2,4),
(1,5)(2,4,3),
(1,5)(3,4),
(1,5)(2,3,4)]