I'm making a program that calculates distance moved of an object however when I run the program using 45 as an angle (sin45 and cos45 are equivalent) the output is different for vertical height and horizontal height
import math
angle = float(input("Enter Angle of Movement(In Degrees): "))
print("Angle is: ",angle,"°")
horizontal_distance = (abs(overall_distance*math.sin(90-angle)))
print("Horizontal Distance:",horizontal_distance,"m")
vertical_distance = (abs(overall_distance*math.cos(90-angle)))
print("Vertical Distance:",vertical_distance,"m")