Python Unexpected Results While Applying Curve Fitting To Triangular

Python Unexpected Results While Applying Curve Fitting To Triangular