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