几个常用的数学函数

void abort(void);

功 能: 异常终止一个进程

 int abs(int i);

功 能: 求整数的绝对值

double acos(double x);

功 能: 反余弦函数

double asin(double x);

功 能: 反正弦函数

double atan(double x);

功 能: 反正切函数

double atan2(double y, double x);

功 能: 计算Y/X的反正切值

double atof(const char *nptr);

功 能: 把字符串转换成浮点数

 int atoi(const char *nptr);

功 能: 把字符串转换成整型数

long atol(const char *nptr);

功 能: 把字符串转换成长整型数

double pow(const double x,const double y);

功 能:求x的y次方

posted @ 2010-12-16 09:14  毛志谦  阅读(192)  评论(0编辑  收藏  举报