The cos(x) function returns the cosine of its argument. cos accepts its argument in radians or degrees, as selected by set angles.