s_cos.c

来自「Newlib 嵌入式 C库 标准实现代码」· C语言 代码 · 共 30 行

C
30
字号
/* @(#)z_cos.c 1.0 98/08/13 *//****************************************************************** * Cosine * * Input: *   x - floating point value * * Output: *   cosine of x * * Description: *   This routine returns the cosine of x. * *****************************************************************/#include "fdlibm.h"#include "zmath.h"#ifndef _DOUBLE_IS_32BITSdouble_DEFUN (cos, (double),        double x){  return (sine (x, 1));}#endif /* _DOUBLE_IS_32BITS */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?