Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Matlab Trigonometry Problem

firfi19866firfi19866 UKMember Posts: 1

Hello Dear Forum Members;

Given the following equations ; cos^2(x/2)=(tan(x)+sin(x))/2*tan(x) Please write a Matlab code to verify that the identity is correct when x=π/5.

cos(pi/5)cos(pi/5)=(tan(pi/5)+sin(pi/5))/(2tan(pi/5))

cos(pi/5)cos(pi/5)=(tan(pi/5)+sin(pi/5))/(2tan(pi/5))

Error: The expression to the left of the equals sign is not a valid target for an assignment.

cos(pi/5)*cos(pi/5)

ans =

0.6545

(tan(pi/5)+sin(pi/5))/(2*tan(pi/5))

ans =

0.9045

I have written the codes above but they are not matched. I kindly request your help. Thank you...

Tagged:
Sign In or Register to comment.