| 31 |
integer npoints !fit number of points |
integer npoints !fit number of points |
| 32 |
real dep(npoints),indep(npoints) !dependent and independent variables |
real dep(npoints),indep(npoints) !dependent and independent variables |
| 33 |
|
|
| 34 |
real angle(npoints) !angle between the tangent line in the input points and |
c real angle(npoints) !angle between the tangent line in the input points and |
| 35 |
|
c ! the independent variable axis |
| 36 |
|
c real residual(npoints) !residuals |
| 37 |
|
c real chi !sum of squared residuals |
| 38 |
|
c real xc,zc,radius !circle parameters |
| 39 |
|
double precision angle(npoints) !angle between the tangent line in the input points and |
| 40 |
! the independent variable axis |
! the independent variable axis |
| 41 |
|
double precision residual(npoints) !residuals EM GCC4.7 |
| 42 |
real residual(npoints) !residuals |
double precision chi !sum of squared residuals EM GCC4.7 |
| 43 |
real chi !sum of squared residuals |
double precision xc,zc,radius !circle parameters EM GCC4.7 |
|
real xc,zc,radius !circle parameters |
|
| 44 |
|
|
| 45 |
integer eflag !error flag =1 if the procedure fails |
integer eflag !error flag =1 if the procedure fails |
| 46 |
|
|
| 55 |
integer ifail !=-1 if singular matrix error, =0 if not singular |
integer ifail !=-1 if singular matrix error, =0 if not singular |
| 56 |
integer jfail !=0 if determinant can be evaluated, =-1 if determinat is probably too small, =+1 if too large |
integer jfail !=0 if determinant can be evaluated, =-1 if determinat is probably too small, =+1 if too large |
| 57 |
|
|
| 58 |
parameter (ibig=1.e4) !just a number greater than C(npoints,3) |
integer ibig ! EM GCC4.7 |
| 59 |
|
c parameter (ibig=1.e4) !just a number greater than C(npoints,3) |
| 60 |
|
parameter (ibig=10000) !just a number greater than C(npoints,3) EM GCC 4.7 |
| 61 |
double precision xxc(ibig),zzc(ibig),rrr(ibig) !centres and radii to be averaged |
double precision xxc(ibig),zzc(ibig),rrr(ibig) !centres and radii to be averaged |
| 62 |
|
|
| 63 |
double precision tmp1,tmp2,tmp(npoints) !temp variables |
double precision tmp1,tmp2,tmp(npoints) !temp variables |