cc [ flag ... ] file ... -lsunmath -lm [ library ... ] #include <sunmath.h>
double sind(double x);
float sindf(float x);
long double sindl(long double x);
double cosd(double x);
float cosdf(float x);
long double cosdl(long double x);
double tand(double x);
float tandf(float x);
long double tandl(long double x);
void sincosd(double x, double *s, double *c);
void sincosdf(float x, float *s, float *c);
void sincosdl(long double x, long double *s, long double *c);
double asind(double x);
float asindf(float x);
long double asindl(long double x);
double acosd(double x);
float acosdf(float x);
long double acosdl(long double x);
double atand(double x);
float atandf(float x);
long double atandl(long double x);
double atan2d(double y, double x);
float atan2df(float y, float x);
long double atan2dl(long double y, long double x);
sind(x)、cosd(x)、および tand(x) は、度数で測定された角度の三角関数 sind(x) := sin(x * pi/180) を計算します。cosd(x) と tand(x) の場合も同様です。
sincosd(x, s, c) は、*s = sind(x) と *c = cosd(x) を同時に設定します。
対応する逆関数は、asind(x) := asin(x) * 180/pi を計算します。acosd(x) と atand(x) の場合も同様です。また、atan2d(y, x) := atan2(y, x) * 180/pi も計算します。
次の属性については、attributes(5) を参照してください。
|
asin(3M)、acos(3M)、atan(3M)、atan2(3M)、cos(3M)、sin(3M)、sincos(3M)、sinp(3M)、sinpi(3M)、tan(3M)、attributes(5)