Hello Dear Forum Members;
>> cos(pi/5)*cos(pi/5)=(tan(pi/5)+sin(pi/5))/(2*tan(pi/5))
cos(pi/5)*cos(pi/5)=(tan(pi/5)+sin(pi/5))/(2*tan(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
I have written the codes above but they are not matched. I kindly request your help. Thank you...

 채택된 답변

James Tursa
James Tursa 2016년 10월 4일

1 개 추천

You are missing the /2 inside the cosine on the lhs. E.g.,
>> cos((pi/5)/2)^2
ans =
0.904508497187474

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Entering Commands에 대해 자세히 알아보기

질문:

2016년 10월 4일

편집:

2016년 10월 6일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by