Trigonometry is a branch of mathematics that deals with the relationships between the sides and angles of triangles. It has…