point_gen_protractor


When you find yourself faced with a Pre-Calculus assignment that requires a protractor in radians, Python can help. This was something I whipped up in a few minutes to make my life a lot easier. Coded around winter 2011.

import math

for i in range(int(2*math.pi*10)+2):
    rad = float(i/10) 
    print(rad," rad, deg:", round((rad*180)/math.pi), (rad*180)/math.pi)

Posted in: Code by nsundin
Copyright © 2011-2025 Programmatic Verse · RSS Feed
Built on Skeleton
Powerered by Wordpress