⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 doubleintegrationtest.cpp

📁 用于求解二阶常微分方程的变步长多步积分法
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -