double sin(double x);
double sin (double x); float sinf (float x);long double sinl (long double x);
double sin (double x); float sin (float x);long double sin (long double x);
double sin (double x); float sin (float x);long double sin (long double x); double sin (T x); // additional overloads for integral types
<cmath>
) 为整型类型提供了额外的重载:这些重载在计算前有效地将 x 转换为 double
类型(为任何整型类型的 T 定义)。<complex>
和 <valarray>
中也被重载(请参阅 complex sin 和 valarray sin)。180/PI
度。
|
|
The sine of 30.000000 degrees is 0.500000. |