EngComp1_offtheground icon indicating copy to clipboard operation
EngComp1_offtheground copied to clipboard

Lesson 5: `numpy.polyfit()` is part of the old API, should rewrite this portion

Open labarba opened this issue 1 year ago • 0 comments

We are using numpy.polyfit(), which is now described as "part of the old polynomial API"—NumPy 1.4 introduced the numpy.polynomial package, and the old numpy.poly1d class is considered legacy.

According to the transition guide, we would instead use the Polynomial class.

The new API has significant differences including the ordering of the coefficients for the polynomial expressions.

labarba avatar Feb 19 '24 21:02 labarba