📄 math_util.h
字号:
/* $Id: math_util.h,v 1.6 2005/08/02 19:35:49 jonathan Exp $ * Jonathan Ledlie, Harvard University. * Copyright 2005. All rights reserved. */#ifndef MATH_UTIL_H#define MATH_UTIL_H//#include <sunmath.h>#include <vector>#include <math.h>using namespace::std;#define Long long long//#define drand48() ((double)rand()/RAND_MAX)#define Rand() drand48()#define SRand(c) srand48(c)#define ABS(x) ((x > 0) ? x : -1*x)double randPct ();int poisson (int mean);double poisson (double mean);int unifRand (int a, int b);double mean (vector<double> v);double stddev (vector<double> v, double mean);double square (double x);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -