Hello, Thanks for your answers.
> > On 25 Jul., 10:52, drenwal <dren...@free.fr> wrote: > >> But, I would prefer to use a more mathematical notation, like Y[k] or > >> y...@k or whatever non already used symbol instead of Ac(y,k). > > Talking about generators: There is a decorator that allows to define a > > custom infix operator (see > >http://www.sagemath.org/doc/reference/sage/misc/misc.html#sage.misc.m...). What you showed me works perfeclty fine from sage.all import infix_operator def Act(Y,k): return k.transpose()*Y*k Act=infix_operator('or')(Act) A=matrix([[1,2],[3,4]]) B=matrix([[1,-1],[-1,1]]) A |Act| B Thanks, Drenwal -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org