[sage-support] Re: for loop in 3d image

2011-09-18 Thread MathLynx
John, Andrzej - thanks! I will have to examine when to add a colon and when not to. You guys are killing me - LOL. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, vis

[sage-support] Re: for loop in 3d image

2011-09-15 Thread achrzesz
A colon is missing after range(20). The following version works for me: (but the indentation in this post may be broken) x,y,z,t = var('x,y,z,t') P = implicit_plot3d(x^2 +y^2 -z^2 ==1, (x,-3.2,3.2),(y,-3.2,3.2), (z,-3,3),opacity=.2,color='blue') for k in range(20): P += parametric_plot3d([cos(

[sage-support] Re: for loop in 3d image

2011-09-14 Thread John H Palmieri
Try adding a colon at the end of "for k in range(20)"? -- John -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sag

[sage-support] Re: for loop in 3d image

2011-09-14 Thread MathLynx
let me alter the first line to x,y,z,t = var('x,y,z,t') On Sep 14, 5:49 pm, MathLynx wrote: > What is wrong with > > x,y,z = var('x,y,z') > P = implicit_plot3d(x^2 +y^2 -z^2 ==1, (x,-3.2,3.2),(y,-3.2,3.2), > (z,-3,3),opacity=.2,color='blue') > for k in range(20) >     P += parametric_plot3d([cos(