// Initilization of variables W=100 // N //force acting at D AB=50 // N // weight of bar ab CD=50 // N // weight of bar cd // Calculations // From the derived expression the value of the angle is given as, theta=atand(5/17.5) //degrees // Results clc printf('The angle theta is %f degrees \n',theta)