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




yspec




options



(optional) plot options, including optionsfeasible, optionsexcluded, optionsopen, optionsclosed, backwardscompatible, nolines, or additional plot options. See the Description for details.





Description


•

Plot 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 list 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 comprises 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.

•

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.



Compatibility


•

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



Examples


>


>


>


>


>


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:
>


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.
>



