fdistributionfunction.cpp
来自「何光渝所著《计算机常用数值算法与程序(C++版)》的随书源代码。 是想学习C+」· C++ 代码 · 共 31 行
CPP
31 行
//FDistributionFunction.cpp
//F-分布函数
#include <iostream> //模板类输入输出流标准头文件
#include <SpecialFunction.h> //数学变换头文件
using namespace std; //名字空间
void main(void)
{
int n1, n2;
double f, y;
int n[2]={ 2,5};
int m[2]={ 3,10};
for(int i=0; i<2; i++)
{
n1=n[i];
n2=m[i];
f=3.5;
y = FDistributionFunction(f,n1,n2);
cout << " FDistributionFunction(" << f << "," << n1
<< "," << n2 << ")\t = " << y << endl;
f=9.0;
y = FDistributionFunction(f,n1,n2);
cout << " FDistributionFunction(" << f << "," << n1
<< "," << n2 << ")\t = " << y << endl;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?