double cos (double x);
double cos (double x); float cosf (float x);long double cosl (long double x);
double cos (double x); float cos (float x);long double cos (long double x);
double cos (double x); float cos (float x);long double cos (long double x); double cos (T x); // additional overloads for integral types
<cmath>
) 中为整型提供了额外的重载:这些重载在计算前有效地将 x 转换为 double
类型(定义为 T 是任意整型)。<complex>
和 <valarray>
中被重载(参见 complex cos 和 valarray cos)。180/PI
度。
|
|
The cosine of 60.000000 degrees is 0.500000. |