📄 stats.cpp
字号:
#include <iostream>#include <sstream>#include <cmath>#include <gsl/gsl_math.h>#include "gsl_statext.h"// M A I Nint main (int argc, char* argv[]) { double x = 0; if (argv[1] != NULL) { std::istringstream istr (argv[1]); istr >> x; } std::cout << "x = " << x << "; 2*PI = " << 2 * M_PI << "; 1/sqrt(2*PI) = " << 1 / std::sqrt (2*M_PI) << std::endl; std::cout << "Standard Normal Density: " << standardNormalDensity (x) << std::endl; std::cout << "Standard Normal Distribution: " << standardNormalDistribution (x) << std::endl; return 0; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -