Calculate the cosine and the sine of the given IEEE double
precision number where y represents an angle in radians. The
function returns the sine of that number as a result and puts
the cosine of that number into *z which must represent
a valid pointer to a IEEE double precision number.
IEEE double precision floating point number
flags:
zero : result is zero
negative : result is negative
overflow : result is too big for IEEE double precsion format