Inequality Plotting - Maple Help

Home : Support : Online Help : System : Information : Updates : Maple 17 : Inequality Plotting

Inequality Plotting

As of Maple 17 the inequality plotting command in the plots package is greatly improved.  Most notably, it now supports the plotting of nonlinear inequalities, but it also has improved the interface for specifying the style of the plotted region and for combining plots of multiple regions.

 > $\mathrm{with}\left(\mathrm{plots}\right):$$\phantom{\rule[-0.0ex]{0.0em}{0.0ex}}\phantom{\rule[-0.0ex]{0.0em}{0.0ex}}\mathrm{inequal}\left(\left\{{x}^{2}-y<0,{x}^{2}+{y}^{2}<9,0<3y-x-2\right\},x=-2..2,y=0..3,\mathrm{color}="Niagara 1"\right)$

Multiple inequality plots can be combined with plots[display]:

 > $\mathrm{ineqs}:=\left[\left[\frac{4}{9}
 > $\mathrm{i1}:=\mathrm{inequal}\left({\mathrm{ineqs}}_{1},x=-2..2,y=0..3,\mathrm{color}="Niagara 1"\right):$$\phantom{\rule[-0.0ex]{0.0em}{0.0ex}}\phantom{\rule[-0.0ex]{0.0em}{0.0ex}}\mathrm{i2}:=\mathrm{inequal}\left({\mathrm{ineqs}}_{2},x=-2..2,y=0..3,\mathrm{color}="Niagara 2"\right):$$\phantom{\rule[-0.0ex]{0.0em}{0.0ex}}\phantom{\rule[-0.0ex]{0.0em}{0.0ex}}\mathrm{i3}≔\mathrm{inequal}\left({\mathrm{ineqs}}_{3},x=-2..2,y=0..3,\mathrm{color}="Niagara 3"\right):$$\phantom{\rule[-0.0ex]{0.0em}{0.0ex}}\phantom{\rule[-0.0ex]{0.0em}{0.0ex}}\mathrm{i4}≔\mathrm{inequal}\left({\mathrm{ineqs}}_{4},x=-2..2,y=0..3,\mathrm{color}="Niagara 4"\right):$$\phantom{\rule[-0.0ex]{0.0em}{0.0ex}}\phantom{\rule[-0.0ex]{0.0em}{0.0ex}}\mathrm{display}\left(\mathrm{i1},\mathrm{i2},\mathrm{i3},\mathrm{i4}\right)$

Multiple inequality regions can also be plotted using one command:

 > $\mathrm{inequal}\left(\mathrm{map}\left(t→\left[{t}_{[]},0\le y-2x-1\right],\mathrm{ineqs}\right),x=-2..2,y=0..3,\mathrm{optionsfeasible}=\left[\left[\mathrm{color}="Niagara 1"\right],\left[\mathrm{color}="Niagara 2"\right],\left[\mathrm{color}="Niagara 3"\right],\left[\mathrm{color}="Niagara 4"\right]\right],\mathrm{optionsopen}=\left[\mathrm{color}="Mono 2",\mathrm{thickness}=1\right],\mathrm{optionsclosed}=\left[\mathrm{color}="Mono 1",\mathrm{thickness}=3\right],\mathrm{optionsexcluded}=\left[\mathrm{color}="Mono 5"\right]\right)$