what is cos 30?

14 vues (au cours des 30 derniers jours)
goshi aslam
goshi aslam le 21 Fév 2015
Réponse apportée : Greig le 21 Fév 2015
cos*30

Réponses (2)

Greig
Greig le 21 Fév 2015
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 le 21 Fév 2015
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

Catégories

En savoir plus sur Historical Contests dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by