Chat with our AI personalities
Given two numbers, x and y their difference is |x - y|. |x - y| = x - y if X ≥ y and |x - y| = y - x if x < y
The properties for real numbers are as follows:closure: for any numbers x and y, x + y is a real number.associativity: for any numbers x, y and z, x + (y + z) = (x + y) + z = x + y + zidentity: for any number x, there is a number, denoted by 0, such that x + 0 = x = 0 + xInvertibility: for any number x, there is a number denoted by -x such that x + (-x) = (-x) + x = 0Commutativity: for any numbers x and y, x + y = y + x.
If the two numbers are X and Y, it is |X - Y| + 4 or abs(X - Y) + 4
Try system.X + Y = 62X - Y = 36X + Y = 62- (X - Y = 36)X + Y = 62- X + Y = - 36------------------------------add2Y = 26Y = 13==============The numbers.
There are two simple strategies to compare two numbers, X and Y: you can calculate X - Y. If X - Y > 0 then X > Y, if X - Y = 0 then X = Y and if X - Y <0 then X < Y. Or you can calculate X/Y. Provided both are greater than 0, if X/Y > 0 then X > Y if X/Y = 1 then X = Y if X/Y <1 then X < Y