A Maple Package for Solving and Displaying Inequalities
Robert Ipanaqu Chero Peruvian Applied & Computational Mathematical Society (Member), Per E-mail: robertchero@hotmail.com
Introduction
Solving inequalities is a very important topic in computational algebra. In fact, the most important computer algebra systems include sophisticated tools for solving different kinds of inequalities in both symbolic and graphical ways. This worksheet presents a new Maple package, InequalityGraphics, for displaying the two-dimensional solution sets of several inequalities. The package also deals with inequalities involving complex variables by displaying the corresponding solutions on the complex plane. The output obtained is consistent with Maple's notation. The performance of the package is discussed by means of several illustrative and interesting examples.
The Package InequalityGraphics: Some Illustrative Examples
Loading the package plots:
Loading the package developed by the author:
Help messages:
Error, (in InequalityGraphics:-inequalityplot) expecting 3 arguments, got 0. This commmand also incorporates the options: (1) exludedcolor=yellow, (2) feasiblecolor=red, (3) linespoints=350, (4) feasiblepoints=15 and (5) thickness=1. Examples: <1> inequalityplot(x^2+y^2<1,x=-1..1,y=-1..1), <2> inequalityplot(x^2+y^2<1,x=-1..1,y=-1..1, excludedcolor=white,feasiblecolor=cyan)
Error, (in InequalityGraphics:-complexinequalityplot) expecting 2 arguments, got 0. This commmand also incorporates the options: (1) exludedcolor=yellow, (2) feasiblecolor=red, (3) linespoints=350, (4) feasiblepoints=15, (5) linescolor=black and (6) thickness=1. Examples: <1> complexinequalityplot(abs(z)<1,z=(-1..1,-1..1)), <2> complexinequalityplot(abs(z)<1,z=(-1..1,-1..1), excludedcolor=white,feasiblecolor=cyan)
Example of inequality solution: on the square
Using the options
Example of inequality solution: on the rectangle
Example of inequality solution for such that :
Conclusions
In this worksheet a new Maple package, InequalityGraphics, to solve real and complex inequalities and display their associated two-dimensional solution sets is introduced. The performance of the package has been illustrated by means of several interesting examples. In all the cases, the output obtained is consistent with Maple's notation.
Source
Heiko Feldmann: 3D Plots of Discontinuous Functions. Institute for theoretical physics, University of Wrzburg, Germany. 2000.