""" This application will calculate the chop saw miter and bevel settings for any angle crown molding. https://play.google.com/store/apps/details?id=com.crownking """ import math wall_angle = 90 # Wall angle sping_angle = 38 # Miter spring angle sa2 = math.radians(sping_angle) wa2 = math.radians(wall_angle) ma = math.atan(math.sin(sa2) / math.tan(wa2 / 2.0)) ba = math.asin(math.cos(sa2) * math.cos(wa2 / 2.0)) ma2 = math.degrees(ma) ba2 = math.degrees(ba) print("Answer:") print("Miter Angle = %.2f" % ma2) print("Bevel Angle = %.2f" % ba2)