跳转到内容

sin, sinf, cos, cosf:正弦或余弦

#include <math.h>
double sin(double x);
float sinf(float x);
double cos(double x);
float cosf(float x);
```### 描述
sin 和 cos 分别计算参数 x 的正弦和余弦。角度以弧度指定。sinf 和 cosf 与之相同,区别仅在于它们接受并返回 float 值。### 返回值
返回 x 的正弦或余弦值。
---
**权威来源**: BUSMASTER DITA help source `sin.dita`, compiled into `BUSMASTER.CHM` with the application.