Regular polygon by clock

k=eval *$<;k.times{|i|puts"%.f %.f"%[1e3*Math.cos(i*=6.28318/k)+0.01,1e3*Math.sin(i)]}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page