// ConsoleApplication1.cpp : 定义控制台应用程序的入口点。
//P109
#include "stdafx.h"
#include<iostream>
using namespace std;
int main()
{
#define f(x,y) (y-2*x/y)
int n,p;
double x[5], y[5], h, N;
cout << "请输入x0,y0,h,N" << endl;
cin >> x[0] >> y[0] >> h >> N;
//...
n = 4;
do
{
x[4] = x[3] + h;
y[p] = y[3] + h / 24 * (55 * -59 * +37 * -9 * );//***
//...
y[4] = y[3] + h / 24 * (9* +19* -5* + );//***
//...
} while (n != N);
return 0;
}
//P109
#include "stdafx.h"
#include<iostream>
using namespace std;
int main()
{
#define f(x,y) (y-2*x/y)
int n,p;
double x[5], y[5], h, N;
cout << "请输入x0,y0,h,N" << endl;
cin >> x[0] >> y[0] >> h >> N;
//...
n = 4;
do
{
x[4] = x[3] + h;
y[p] = y[3] + h / 24 * (55 * -59 * +37 * -9 * );//***
//...
y[4] = y[3] + h / 24 * (9* +19* -5* + );//***
//...
} while (n != N);
return 0;
}