The cos functions return the cosine of their argument, measured in radians. The cosd functions return the cosine of their argument, measured in degrees. |x| = Infinity is an invalid argument.