Wikipedia will not tell you what order your polyfit method populates the coeff array .