how would write an equation where the answer can greater than, equal to, but not less than zero

5.3k Views Asked by At

how would you modify the equation

a - b = c

so that 'c' could not be less than zero. e.g.

5 - 3 = 2
5 - 4 = 1
5 - 5 = 0
5 - 6 = 0
5 - 60 = 0
3

There are 3 best solutions below

1
On

First, you are talking about an inequality which can be stated as thus:

$c\ge0$

Second, the equation $a-b=c$ doesn't state what number system are these numbers from: Natural numbers, Whole Numbers, Integers, Rationals, Reals, Complex, Algebraic, or some other number system? There are more than a few sets of possible numbers so this is something to consider when asking a question.

Third, $5-60=-55$ which does exist in the Integers, Reals, Algebraic, Rationals and a few other number systems. To say that c can't be less than zero but is an integer would be to simply make it a Whole Number in terms of an English statement that is equivalent to the inequality I stated above.

1
On

The following equation requires $c$ to be non-negative: $a^2 + b^2 = c$ where $a,\,b,\,c \in \mathbb{R}$.

0
On

Well if $a-b=c$ and you require that $c\geq 0$ then you require that $a-b\geq 0$ which means you require $a\geq b$. Interpreting your question another way, you can also do

$$|a-b|=c$$

so $c$ will never be negative. Looking at your examples, you can also do

$$\max(a-b,0)=c$$

which coincides exactly with your numerical examples.