- #1
akila
- 1
- 0
hi all,
greetings,
i have a fortran prg to fit 2nd order polynomial to my data
taken from (bevington--- polfit.f)
i'm making some mistake, and i could not find what is the problem with this.
When i give some other other random data it is fitting properly
but not the data i have :(
for y = a + bx + cx^2 i should get the coefficients to be
a = 1.4558380406304288E+03
b = -3.6779173737460803E+02
c = 2.3247378080674739E+01
but I am getting as
a = -16.2156696
b = -1.78127503
c = 0.496948689
can somebody please please help me to find out the problem
here i have attached the prg
thank you,
regards,
akila
greetings,
i have a fortran prg to fit 2nd order polynomial to my data
taken from (bevington--- polfit.f)
i'm making some mistake, and i could not find what is the problem with this.
When i give some other other random data it is fitting properly
but not the data i have :(
for y = a + bx + cx^2 i should get the coefficients to be
a = 1.4558380406304288E+03
b = -3.6779173737460803E+02
c = 2.3247378080674739E+01
but I am getting as
a = -16.2156696
b = -1.78127503
c = 0.496948689
can somebody please please help me to find out the problem
here i have attached the prg
thank you,
regards,
akila