### A trigonometric identity is given by cos2(x/2)=(tanx+sinx)/2.tanx verify that the identity is correct by calculating each side of the equation substituting x=pi/5

Problem :
A trigonometric identity is given by cos2(x/2)=(tanx+sinx)/2.tanx verify that the identity is correct by calculating each side of the equation substituting x=pi/5

>> %A trigonometric identity is given by cos2(x/2)=(tanx+sinx)/2.tanx verify that the identity is correct by calculating each side of the equation substituting x=pi/5%
>> x=pi/5;
>> LHS=cos(x/2)^2

LHS =

0.9045

>> RHS=(tan(x)+sin(x))/(2*tan(x))

RHS =

0.9045