Someone knowledgeable about sage said I could animate a union of 6 lines in
3D with this code:
var('t')
frame_list = [ ]
for t in range(0,120):
tb = (t - 60.0)/120.0
tg = (24.0*tb + sqrt(-1620*tb^4 + 216.0*tb^2 + 300.0))/(54*tb^2 + 30)
Pall = line([ (0,0,0),(1,0,0), (4 / 3, ( -2*r2*tg^2 + 2*r2 ) / (3*tg^2
+ 3 ), ( 4*r2*tg ) / ( 3*tg^2 + 3 )), (( -5*tb*tg + 5 ) /
( 3*tb*tg + 5 ) , ( -5*r2*tb*tg + 5*r2 ) / ( 3*tb*tg + 5 ) , (5*r2*tg +
5*r2*tb ) / ( 3*tb*tg + 5 )), ( ( -12*tb^2 + 4 ) / (
9*tb^2 + 9 ), ( 6*r2*tb^2 + 10*r2 ) / ( 9*tb^2 + 9 ), ( 4*r2*tb )/ (
3*tb^2 + 3 ) ), ( -1 / 3, ( 2*r2 ) / 3, 0), (0,0,0) ],
thickness=5, rgbcolor='red')
frame_list = frame_list + Pall
followed then by:
my_animation = animate(frame_list)
my.animation.show()
The definition of the six points in Pall = line(....) looks complicated
but it is correct (given numerical values for tb and tg). r2 was defined
before to be sqrt(2.0) = 1.4142135...
Sage responds with an error:
AttributeError: 'list' object has no attribute 'plot3d'
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.