Products & Services Industries Academia Support User Community Company

Learn more about MATLAB   

cosd - Cosine of argument in degrees

Syntax

Y = cosd(X)

Description

Y = cosd(X) returns the cosine for each element of X, expressed in degrees.

Examples

Compare the accuracy of cos and cosd.

isequal(cosd(270),cos(3*pi/2))

For odd integers n, cosd(n*90) is exactly zero, whereas cos(n*pi/2) reflects the accuracy of the floating point value of pi.

See Also

acosd | cos

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS