As your study of inequalities progresses, you will be introduced to a compound inequality. These inequalities can be a little tricky, so let's first take a look at the definition. A compound inequality consists of two inequalities that are joined together by the word "and" or the word "or". The solution to an "And" inequality is the intersection of the solution sets for two different inequalities. It's best explained through looking at a graph. Take a look with me
How Do You Solve an OR Compound Inequality and Graph It On a Number Line? | Virtual Nerd
A compound inequality contains at least two inequalities that are separated by either "and" or "or". The graph of a compound inequality with an "and" represents the intersection of the graph of the inequalities. A number is a solution to the compound inequality if the number is a solution to both inequalities. The graph of a compound inequality with an "or" represents the union of the graphs of the inequalities. A number is a solution to the compound inequality if the number is a solution to at least one of the inequalities. Share on Facebook.
Join Stack Overflow to learn, share knowledge, and build your career. Connect and share knowledge within a single location that is structured and easy to search. Supposing you have X ranging from to and Y ranges from to , how can you write an if function to represents something like:. I am trying to write it in such as way that any number outside the range will show an error message. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Apart from the stuff given above, if you need any other stuff in math, please use our google custom search here. If you have any feedback about our math content, please mail us :. We always appreciate your feedback. You can also visit the following web pages on different stuff in math.