what is cos 30?

14 次查看(过去 30 天)
goshi aslam
goshi aslam 2015-2-21
回答: Greig 2015-2-21
cos*30

回答(2 个)

Greig
Greig 2015-2-21
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 2015-2-21
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

类别

Help CenterFile Exchange 中查找有关 Historical Contests 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by