inequal - Maple Help

plots

 inequal
 plot regions defined by inequalities

 Calling Sequence inequal(ineqs, xspec, yspec, options)

Parameters

 ineqs - one inequality, a set or list of inequalities, a nested list or set of inequalities, or a boolean combination of inequalities xspec - $\mathrm{xvar}=\mathrm{min_x}..\mathrm{max_x}$ yspec - $\mathrm{yvar}=\mathrm{min_y}..\mathrm{max_y}$ options - (optional) plot options, including optionsfeasible, optionsexcluded, optionsopen, optionsclosed, backwardcompatible, nolines, or additional plot options. See the Description for details.

Description

 • The inequal function plots the regions defined by inequalities in two unknown variables. If a list or set of inequalities is given, the intersection of their feasible regions is plotted.  If a list of lists or set of sets of inequalities is given, then the union of each of the feasible regions is plotted. For convenience, combinations of inequalities may instead be specified using boolean operators that will then be converted into the list of lists format by conversion to disjunctive normal form.
 • The plot consists of four elements:
 – feasible region: for the regions that satisfy all inequalities
 – excluded regions: for the regions that violate at least one inequality
 – open lines: representing the borders of a strict inequality
 – closed lines: representing the borders of an inequality that includes its edges, and also the equalities
 • The styles of each of these types of elements can be controlled independently. Each option is of the form optionname = [sequence of plot options]. The optionnames are optionsfeasible, optionsexcluded, optionsopen, and optionsclosed.  Only options applicable to curves and polygons, which are used to represent these elements, are accepted. The option axeslabels, for example, cannot be used with one of the four option names listed above, but can be provided separately as an additional plotting option. For more information, see the plot/options help page.
 • Some equations may be included in the input ineqs, but they will be plotted only as boundary curves and extraneous curves where the equations are not satisfied may also be plotted (boundaries of regions where the equations might have changed signs but did not). In general, calling plots[implicitplot] will produce more accurate results.
 • If ineqs is a list of lists, then any of the options except optionsexcluded can be given as a list of lists of options to specify the style of each of the regions separately.
 • If a style is specified for optionsexcluded then a rectangle will be drawn behind the feasible region. Note: To create plots that can be combined with plots[display], avoid using the optionsexcluded option.
 • Additional plotting options (those not passed in one of the four option lists) will be applied to the feasible regions when applicable.
 • The algorithm used by inequal changed significantly in Maple 17. For applications that rely on the old behavior, you can use the backwardcompatible option to get the old algorithm from Maple 16 and earlier.
 • The nonlinear components of the inequalities will be rendered by plots[implicitplot] using a heuristic to compromise between visual fidelity and computation speed. The option optionsimplicit can be used to explicitly pass a list of options to implicitplot to achieve faster performance or a smoother plot.
 • To create a plot displaying only the feasible region areas without borders, specify the option nolines.

Examples

 > $\mathrm{with}\left(\mathrm{plots}\right):$
 > $\mathrm{inequal}\left(0
 > $\mathrm{inequal}\left(\left\{0
 > $\mathrm{inequal}\left(\left\{0
 > $\mathrm{inequal}\left(\left\{0<3a+2b,3

The nolines option can give a cleaner looking plot.

 > $\mathrm{inequal}\left(\left\{0<3a+2b,3

Specifying a nested set of sets is like combining multiple inequal plots using plots[display] except that optionsexcluded can be used.

 > $\mathrm{inequal}\left(\left\{\left\{x<-2,y<-\frac{3}{2}\right\},\left\{x<-2,\frac{3}{2}
 > $\mathrm{display}\left(\mathrm{inequal}\left(\left\{y<\frac{3}{2},-\frac{3}{2}

This is the command to create the plot from the Plotting Guide.

 > $\mathrm{inequal}\left(\left[\left\{0

Using a list of lists input, different colors can be specified for the regions:

 > $\mathrm{inequal}\left(\left[\left[3\le b,a<2b+8,2b-6

Boolean operators can be used instead of the list of lists input; however, the order of regions may changed by in preprocessing so styles may have to be adjusted.

 > $\mathrm{inequal}\left(3\le b\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{and}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}a<2b+8\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{and}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}2b-6

Compatibility

 • The backwardcompatible, optionsimplicit and nolines options were introduced in Maple 17.