Calculate the cosine of the input argument x (measured in radians).
- Returns:
- cosf(0) returns 1.
- cosf(
) returns NaN.
- Note:
- For accuracy information for this function see the CUDA C Programming Guide, Appendix C, Table C-1.
This function is affected by the --use_fast_math compiler flag. See the CUDA C Programming Guide, Appendix C, Table C-3 for a complete list of functions affected.