what is cos 30?

Respuestas (2)

Greig
Greig el 21 de Feb. de 2015

2 votos

MATLAB also has the cosd() function, so you can use cosd(30). Have a look at the trigonometry documentation for other similar function.
SamBro
SamBro el 21 de Feb. de 2015

1 voto

MatLab will do all calculations in radians as a default. So if you want to calculate
ans=cos(30);
in degrees you'll need to write:
ans=cos(30*pi/180);
ans=sqrt(3)/2
Otherwise, if you calculate
ans=cos(30);
in MatLab you'll get:
ans=0.1543

Categorías

Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Preguntada:

el 21 de Feb. de 2015

Respondida:

el 21 de Feb. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by