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.
--
You received this message because you are subscribed to the Google Groups
"sage-cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sage-cloud/94560047-6c4e-47a0-bcbd-f226dd06be9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.