doubleintegrationtest.cpp

来自「用于求解二阶常微分方程的变步长多步积分法」· C++ 代码 · 共 26 行

CPP
26
字号
// DoubleIntegrationTest.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "VariableStepDoubleIntegration.h"


int _tmain(int argc, _TCHAR* argv[])
{	
	// the following is the test of y''=-y for CVariableStepDoubleIntegration
	double dPos[1] = {0}, dVel[1] = {1};
	double dTime = 0, dEndTime = 10*3.14;
/*
	// the following is the test of van der Pol Equation, u = 1
	dPos[1] = {2};
	dVel[1] = {0};
	dTime = 0;
	dEndTime = 20;
*/
	CVariableStepDoubleIntegration *pVSDI = new CVariableStepDoubleIntegration();
	pVSDI->StartIntegration(1, &dTime, dEndTime, dPos, dVel);

	return 0;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?