📄 errorfunction.cpp
字号:
//ErrorFunction.cpp
//误差函数
#include <iostream> //模板类输入输出流标准头文件
#include <SpecialFunction.h> //数学变换头文件
using namespace std; //名字空间
void main(void)
{
double x, y;
for(int i=1; i<20; i++)
{
for(int j=0; j<2; j++)
{
x = 0.05 * (2.0 * i +j);
y = ErrorFunction(x);
cout << " ErrorFunction(" << x << ")\t=" << y;
}
cout << endl;
}
x = 2.0;
y = ErrorFunction(x);
cout << " ErrorFunction(" << x << ")\t=" << y << endl;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -