concept quality in category python
appears as: quality

This is an excerpt from Manning's book Math for Programmers: 3D graphics, machine learning, and simulations with Python.
The object is supposed to be accelerating the whole time, so you might expect it to move in a smooth curve instead of in straight lines. Now that we have Euler’s method implemented in Python, we can quickly rerun it with different parameters to assess the quality of the approximation.
Some of these errors are smaller than others, but how can we quantify the quality of the fit? Let’s compare this to a picture of a function, g(x) = 1 − x, which is obviously a bad fit (figure 14.7).
Figure 14.16: A graph of cost vs. the slope a, showing the quality of fit for different slope values
![]()