Edited at

turtleに三角関数を描いてもらった

More than 3 years have passed since last update.

Python2.7で動作させましたが,多分Python3でも大丈夫だと思います.

import turtle as tur

import math

tur.shape('turtle')
tur.left(90)

A = 5
for k in range(360):
tur.forward(1)
tur.setheading(math.degrees(math.atan(A * math.cos(math.radians(k)))))

(追記 2015/8/29 19:41) 実行結果です.

spam1.gif