06/07/25 17:12:50
#include<stdio.h>
double* f1(double* x,double* y,double* z);
double* f2(double* x,double* y,double* z);
double* f3(double* x,double* y);
int main
{
double x;
double y;
double z;
double* pz;
double* dx;
double* dy;
//初期値x=0.8 y=0.6で
x=0.8;
y=0.6;
for(int i=0;i<30;i++)
{
pz=f3(&x,&y);
z= *pz;
printf("%6.2lf %6.2lf\ %6.2lf\n",x,y,z);
dx=f1(&x,&y,&z);
dy=f1(&x,&y,&z);
x=x+ (*dx);
y=y+ (*dy);
}
return 0;
}