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

 Respuesta aceptada

James Tursa
James Tursa el 4 de Oct. de 2016
You are missing the /2 inside the cosine on the lhs. E.g.,
>> cos((pi/5)/2)^2
ans =
0.904508497187474

Más respuestas (0)

Categorías

Más información sobre Entering Commands en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 4 de Oct. de 2016

Editada:

el 6 de Oct. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by