C++gcc & VS

Math

EXP10

格式:number := EXP10(x)
证:将x的盖10吗底之指数值赋给number

http://www.yfdmt.com/multimedia/authorware/yufeng/function1.htm

 

isnan isinf

于linux下产生零星单函数

isnan(x)
isinf(x)

本着许在windows下之函数:

 _isnan(x)
!_finite(x)

为了跨平台,要么用boost要么这样描绘:

int isnan(double x){return x != x;}int isinf(double x){return!isnan(x)&& isnan(x - x);}

int iserr(double x) {return isnan(x)||isinf(x);}

 http://blog.csdn.net/sunmenggmail/article/details/7853081

VC++6.0里无数学常数的问题

常用的数学常数,比如圆周率、e在matlab里面还来异乎寻常变量可以一直用,C++里面其实也有,用的话格式是
#define _USE_MATH_DEFINES
#include<cmath>

(#include<math.h>也可以)

http://tieba.baidu.com/p/912430277