Operators > Boolean Operators > Example: Logical Operators
Example: Logical Operators
You can simplify expressions that contain logical operators and comparison operators. Simplification of such expressions returns a refined result that is easier to understand.
Logical AND
Evaluate an expression with two intervals that do not have any intersections.
Click to copy this expression
Evaluate the expression with the keyword simplify. Since the intervals do not overlap, the result is 0 (false).
Click to copy this expression
Evaluate an expression with two intervals that intersect in one point. Evaluating with the keyword simplify returns the intersection point.
Click to copy this expression
Evaluate an expression with two intervals where one interval is included in the other. Evaluating with the keyword simplify returns the smallest interval.
Click to copy this expression
Evaluate an expression with two intervals that intersect in a specific range. Evaluating with the keyword simplify returns the intersection range.
Click to copy this expression
Logical OR
Evaluate an expression with two intervals that overlap the whole domain. Evaluating with the keyword simplify returns the domain.
Click to copy this expression
Evaluate an expression where the intervals exclude only one point. Evaluating with the keyword simplify returns the excluded point.
Click to copy this expression
Evaluate an expression with two intervals, when one is contained inside the other. Evaluating with the keyword simplify returns the largest interval.
Click to copy this expression
Was this helpful?