functionplot
Plot polynomial y=p(x)
Information
Plots the given polynomial. If default arguments are used, as in:
Polynomial p = Polynomial({1,2,3});
Polynomial.plotPolynomial(p);
then the abszissa range is determined in such a way that all roots (i.e., p(x)=0) and all extrema (i.e, pd=derivative(p), pd(x)=0) are in the plotted range. As default legend, the String representation of the polynomial is used as generated by Polynomial.'String'(..).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Polynomial | p | Polynomial to be plotted | |
| Integer | nPoints | 200 | Number of points |
| Boolean | autoLabel | true | True, if automatically selected labels |
| String | xLabel | "" | Abszissa description, if autoLabel = false |
| String | yLabel | "" | Ordinate description, if autoLabel = false |
| Boolean | autoRange | true | True, if abszissa range is automatically determined |
| Real | x_min | -1.0 | Minimum abszissa value, if autoRange = false |
| Real | x_max | 1.0 | Maximum abszissa value, if autoRange = false |