plot regions defined by inequalities
inequal(ineqs, xspec, yspec, options)
one inequality, a set or list of inequalities, a nested list or set of inequalities, or a boolean combination of inequalities
(optional) plot options, including optionsfeasible, optionsexcluded, optionsopen, optionsclosed, backwardcompatible, nolines, or additional plot options. See the Description for details.
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.
The nolines option can give a cleaner looking plot.
Specifying a nested set of sets is like combining multiple inequal plots using plots[display] except that optionsexcluded can be used.
This is the command to create the plot from the Plotting Guide.
Using a list of lists input, different colors can be specified for the regions:
inequal⁡3≤b,a<2⁢b+8,2⁢b−6<a,−53<b,b<3,a<2⁢b+8,−b+3<a,a=−2..15,b=−4..11,optionsfeasible=color=Spring 1,color=Spring 2
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.
inequal⁡3≤banda<2⁢b+8and2⁢b−6<aor−53<bandb<3anda<2⁢b+8and−b+3<a,a=−2..15,b=−4..11,optionsfeasible=color=Spring 1,color=Spring 2
The backwardcompatible, optionsimplicit and nolines options were introduced in Maple 17.
For more information on Maple 17 changes, see Updates in Maple 17.
Download Help Document
What kind of issue would you like to report? (Optional)