Main Content
cos
Cosine of argument in radians
Syntax
Description
Examples
Input Arguments
Output Arguments
More About
Tips
To compute
cos(X*pi)
accurately, without usingpi
as a floating-point approximation of π, you can use thecospi
function instead. For example,cospi(m/2)
is exactly zero for odd integersm
andcospi(n)
is +1 or –1 for integersn
.