I was surprised that this works as well as it does.

@interact
def _(n=(4..10)):
     @interact
     def __(i=(0..n-1),j=(0..n-1)):
         M = MatrixSpace(ZZ,n,n)(0)
         k = n-i-1
         l = n-j-1
         M[i,j]=-1
         M[k,l]=1
         show(latex("(%s, %s) $\mapsto$ (%s,%s)"%(i+1,j+1,k+1,l+1)))
         show(M)

Unfortunately, you can't change the uppermost slider (in Firefox, at least).  
Well, you *can*, it just resets itself and is totally useless.


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to