中易网

c语言标准函数库的math.h

答案:1  悬赏:80  
解决时间 2021-01-14 11:53
  • 提问者网友:愿为果
  • 2021-01-13 16:07
c语言标准函数库的math.h
最佳答案
  • 二级知识专家网友:詩光轨車
  • 2021-01-13 16:45
On domain error, implementation-defined value returned and errno set to EDOM. On range error, errno set to ERANGE and return value is HUGE_VAL with correct sign for overflow, or zero for underflow. Angles are in radians.
HUGE_VAL
magnitude returned (with correct sign) on overflow error
double exp(double x);
exponential of x
double log(double x);
natural logarithm of x
double log10(double x);
base-10 logarithm of x
double pow(double x, double y);
x raised to power y
double sqrt(double x);
square root of x
double ceil(double x);
smallest integer not less than x
double floor(double x);
largest integer not greater than x
double fabs(double x);
absolute value of x
doubleldexp(double x, int n);
x times 2 to the power n
doublefrexp(double x, int* exp);
if x non-zero, returns value, with absolute value in interval [1/2, 1), and assigns to *exp integer such that product of return value and 2 raised to the power *exp equals x; if x zero, both return value and *exp are zero
double modf(double x, double* ip);
returns fractional part and assigns to *ip integral part of x, both with same sign as x
double fmod(double x, double y);
if y non-zero, floating-point remainder of x/y, with same sign as x; if y zero, result is implementation-defined
double sin(double x);
sine of x
double cos(double x);
cosine of x
double tan(double x);
tangent of x
double asin(double x);
arc-sine of x
double acos(double x);
arc-cosine of x
double atan(double x);
arc-tangent of x
double atan2(double y, double x);
arc-tangent of y/x
double sinh(double x);
hyperbolic sine of x
double cosh(double x);
hyperbolic cosine of x
double tanh(double x);
hyperbolic tangent of x

我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息!
大家都在看
推荐信息