animate on SMC

53 views
Skip to first unread message

valer...@gmail.com

unread,
Mar 4, 2017, 5:06:42 PM3/4/17
to sage-cloud
I have SAGE installed in my computer (a MacBook), and the following code works fine (I get the animation showing after a few seconds):

def tangent_line(f,a,x=x):
       f(x)=f
       b=f(a)
       df(x)=diff(f,x)
       m=df(a)
       result=b+m*(x-a)
       return result
f(x)=x^2
L(a,x)=tangent_line(f(x),a)
show(animate([plot((f(x),L(t,x)),x,-3.5,3.5,ymax=20,ymin=-20) for t in sxrange(-3,3,0.5)]))

The same code worked on SMC about 3-4 weeks ago, but now (in the last couple of days) it no longer works.  The cell with the show command just flashes forever (or at least 30 minutes). I tried with different computers and different browsers and at different times of the day.

Thanks for any help with this issue.


saad khalid

unread,
Apr 11, 2017, 10:53:15 AM4/11/17
to sage-cloud
Hello! I'm not sure if you are still having this issue, however I just tested your code on firefox and it is working fine for me! Is this still causing an issue for you?

valer...@gmail.com

unread,
Apr 12, 2017, 5:46:40 AM4/12/17
to sage-cloud
No, it works fine now...I am assuming there was some maintenance being done on the SMC server at that time....Thanks for your message though.

saad khalid

unread,
Apr 12, 2017, 9:56:33 AM4/12/17
to sage-cloud
No problem, glad to hear its working!


On Saturday, March 4, 2017 at 4:06:42 PM UTC-6, valer...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages