?? normaldistributionfunction.cpp
字號:
//NormalDistributionFunction.cpp
//正態分布函數
#include <iostream> //模板類輸入輸出流標準頭文件
#include <SpecialFunction.h> //數學變換頭文件
using namespace std; //名字空間
void main(void)
{
double x, y, b, c;
double a[2]={ -1.0,3.0};
double d[2]={ 0.5,15.0};
for(int i=0; i<2; i++)
{
b=a[i];
c=d[i];
x=-10.0;
for(int j=0; j<5; j++)
{
y = NormalDistributionFunction(b, c, x);
cout << " NormalDistributionFunction(" << b << "," << c
<< "," << x << ")\t= " << y << endl;
x = x + 5.0;
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -