这个程序同样计算错误?
#include<stdio.h>
#include<stdlib.h>
void main()
{
double a1a2[100],
y1[100],ya[100],ay[100],x1=0,
y2[100],yb[100],by[100],x2[100],
y3[100],yc[100],cy[100],x3[100],
y4[100],yd[100],dy[100],x4[100],
y5[100],x5[100],
yo[100],xo[100],y0[100],x0[100],
k1[100],b1[100],k2[100],b2[100],k3[100],b3[100];
int n=1,i;
for(i=0;i<n;++i)
{
scanf("%f%f%f%f%f%f%f%f%f",&a1a2[i],&y1[i],&ya[i],&y2[i],&yb[i],&y3[i],&yc[i],&y4[i],&yd[i]);
ay[i]=(y1[i]+ya[i])/2;
by[i]=(y2[i]+yb[i])/2;
cy[i]=(y3[i]+yc[i])/2;
dy[i]=(y4[i]+yd[i])/2;
x1=0;
x2[i]=a1a2[i]/1.37575;
x3[i]=(2.5*a1a2[i])/1.37575;
x4[i]=(3.5*a1a2[i])/1.37575;
x5[i]=(4.6*a1a2[i])/1.37575;
y0[i]=(ay[i]+by[i])/2;
x0[i]=(x1+x2[i])/2;
ay[i]=k1[i]*x1+b1[i];
cy[i]=k1[i]*x3[i]+b1[i];
k1[i]=(ay[i]-cy[i])/(x1-x3[i]);
b1[i]=ay[i]-k1[i]*x1;
by[i]=k2[i]*x2[i]+b2[i];
dy[i]=k2[i]*x4[i]+b2[i];
k2[i]=(by[i]-dy[i])/(x2[i]-x4[i]);
b2[i]=by[i]-k2[i]*x2[i];
xo[i]=(b2[i]-b1[i])/(k1[i]-k2[i]);
yo[i]=k1[i]*xo[i]+b1[i];
y0[i]=k3[i]*x0[i]+b3[i];
yo[i]=k3[i]*xo[i]+b3[i];
k3[i]=(y0[i]-yo[i])/(x0[i]-xo[i]);
b3[i]=y0[i]-k3[i]*x0[i];
if(y5[i]=k3[i]*x5[i]+b3[i])
{
printf("%f\n%f\n",y5[i],x5[i]);
}
}
}