
218 Introduction to Computational Models with Python
Figure 15.2 Graph of the e quation y = −2 + 3x
5
.
1.97368421053 87.8482429544
2.23684210526 165.995597296
2.5 290.96875
In a similar ma nner, executing the command file polyval2.cgp with Gnu-
plot produces a graph of polynomial equation y = −2+3x
5
. Figure 15.2 shows
the graph of this polynomial function.
15.5 SOLVING POLYNOMIAL FUNCTIONS
The solution to a quadratic equation, which is a second-degree equation, is
relatively straightforward. The solution to this equatio n involves finding two
values of x that give y value zero. These two values of x are known as the
roots of the function. For higher-or