import math
def calculate_trig_values(angle_degrees):
"""
Calculate sin, cos, and tan values for a given angle
"""
angle_radians = math.radians(angle_degrees)
sin_value = math.sin(angle_radians)
cos_value = math.cos(angle_radians)
tan_value = math.tan(angle_radians)
return sin_value, cos_value, tan_value
angle = float(input("Enter angle in degrees: "))
sin_val, cos_val, tan_val = calculate_trig_values(angle)
print(f"\nAngle: {angle}°")
print(f"Sin({angle}°) = {sin_val:.6f}")
print(f"Cos({angle}°) = {cos_val:.6f}")
print(f"Tan({angle}°) = {tan_val:.6f}")
if abs(cos_val) < 1e-10:
print("\nNote: Tan is undefined at this angle (90° + 180°n)")
To embed this project on your website, copy the following code and paste it into your website's HTML: