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...

 Akzeptierte Antwort

James Tursa
James Tursa am 4 Okt. 2016

1 Stimme

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

Weitere Antworten (0)

Kategorien

Mehr zu Entering Commands finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by