Advertisements
Advertisements
Question
What is the difference between operator in mathematics and logic?
Distinguish Between
Advertisements
Solution
| Basis of Difference | Mathematical Operator | Logical/Boolean Operator |
|---|---|---|
| Operands | Usually operates on numerical quantities | Operates on Boolean values 0 and 1 |
| Main operations | Addition, subtraction, multiplication and division | AND, OR and NOT |
| Result | May be any numerical value | Always 0 or 1 |
| Inverse | Additive and multiplicative inverses generally exist | Logical subtraction and division are not defined |
| Example | [2 + 3 = 5] | [1 + 0 = 1] in Boolean OR |
shaalaa.com
Is there an error in this question or solution?
