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((2*pi*k)/(20))+sin((2*pi*k)/
(20))*t,sin((2*pi*k)/(20))-cos((2*pi*k)/(20))*t,t],
(t,-3,3),color='red',thickness=2)
P.show()

???

This is supposed to produce a hyperboloid of one sheet with 20 of the
lines ruling this surface.  I can add the lines in one at a time by
hand but that's silly.  So the issue seems to be how am I misusing a
for loop in python?  I have looked at several tutorials on python and
cannot identify my error.  Any suggestions?

-- 
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/sage-support
URL: http://www.sagemath.org

Reply via email to