hi all,(adsbygoogle = window.adsbygoogle || []).push({});

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 im getting as

a = -16.2156696

b = -1.78127503

c = 0.496948689

can somebody plz plz help me to find out the problem

here i have attached the prg

thank you,

regards,

akila

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Problem in fortran prg

**Physics Forums | Science Articles, Homework Help, Discussion**