[sage-support] Re: linear transformations (by jason Grout)

2017-09-09 Thread HG
John's suggestion works for me on local sage-8.1beta 4 Le vendredi 8 septembre 2017 16:00:27 UTC+2, HG a écrit : > > https://wiki.sagemath.org/interact/linear_algebra > @interact > def linear_transformation(A=matrix([[1,-1],[-1,1/2]]),theta=slider(0, > 2*pi, .1), r=slider(0.1, 2, .1,

[sage-support] Re: linear transformations (by jason Grout)

2017-09-09 Thread HG
Le vendredi 8 septembre 2017 16:00:27 UTC+2, HG a écrit : > > https://wiki.sagemath.org/interact/linear_algebra > @interact > def linear_transformation(A=matrix([[1,-1],[-1,1/2]]),theta=slider(0, > 2*pi, .1), r=slider(0.1, 2, .1, default=1)): > v=vector([r*cos(theta), r*sin(theta)]) > w

Re: [sage-support] Re: linear transformations (by jason Grout)

2017-09-08 Thread William Stein
> I know that Andrey had pushed some changes so this works in Sage cell (and it > does on the site linked to) and it should still in sagenb - matrices and > vectors are shortcuts for a certain type of array interact. So yes, the > argument should be interactive, but it is recognized as such.

[sage-support] Re: linear transformations (by jason Grout)

2017-09-08 Thread kcrisman
> I think the problem, at least in CoCalc, is that @interact expects every argument to the function to be an interactive device. That may well be the problem in sagemath 8.1 too. I know that Andrey had pushed some changes so this works in Sage cell (and it does on the site linked to) and it

[sage-support] Re: linear transformations (by jason Grout)

2017-09-08 Thread john_perry_usm
This doesn't work for me at all on CoCalc; it gets stuck in an infinite loop because of the matrix A. If I move the definition of A into the body of the loop, it seems to work. Like so: @interact def linear_transformation(theta=slider(0, 2*pi, .1), r=slider(0.1, 2, .1, default=1)):