1 2 3 4 5 6
//As the entire question is theoritical //theta is directly computed theta=acosd(2/3) //degrees //result clc printf('The value of theta is %f degrees',theta)