Defining +0 and -0 in the Integer Number Set: A Question of Limit Approaches

  • Context: Graduate 
  • Thread starter Thread starter ivan
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the definitions and implications of +0 and -0 within the context of the integer number set and absolute value. Participants explore the nature of zero, unary operations, and the concept of distance in relation to absolute value, as well as the distinctions in floating-point representations.

Discussion Character

  • Exploratory
  • Debate/contested
  • Conceptual clarification
  • Mathematical reasoning

Main Points Raised

  • Some participants propose that +0 and -0 can be defined in the integer number set such that +0 = -0 = 0.
  • Others argue that since 0 is a real number, unary operations are defined for 0, leading to the conclusion that +0 = 0 and -0 = 0.
  • A participant suggests that thinking of absolute value as a distance from zero clarifies the concept, noting that distances must be positive.
  • Some participants mention the IEEE floating point distinction between +0 and -0, highlighting implications in calculations involving infinity.
  • There is a question about whether -5 can be expressed as (-1)*(5), which raises concerns about differences in the context of limits approaching zero.
  • Another participant questions the idea of 0 being positive or negative, asserting that 0 is neither.
  • A later reply suggests that the sign of 0 could depend on the approach taken at the limit, either from the positive or negative side.

Areas of Agreement / Disagreement

Participants express differing views on the nature of +0 and -0, with some asserting they are equivalent while others emphasize distinctions, particularly in floating-point arithmetic. The discussion remains unresolved regarding the implications of approaching zero from different sides in limit processes.

Contextual Notes

Limitations include the dependence on definitions of unary operations and the context of real versus integer numbers. The discussion also touches on the mathematical treatment of infinity, which is not a real number.

ivan
Messages
22
Reaction score
0
Somebody asked me how absolute value of a real number can be defined. I said |a| is defined as +a if a>=0 and -a if a<0 (instead of, |a| is defined as a if a>=0 and -a if a<0). Then came an objection that with such a definition if a=0 its absolute value should be +0 and there's no such thing.

Can't one define -0 and +0 in integer number set such that +0=-0=0?
 
Physics news on Phys.org
ivan said:
Somebody asked me how absolute value of a real number can be defined. I said |a| is defined as +a if a>=0 and -a if a<0 (instead of, |a| is defined as a if a>=0 and -a if a<0). Then came an objection that with such a definition if a=0 its absolute value should be +0 and there's no such thing.

Can't one define -0 and +0 in integer number set such that +0=-0=0?
Well, yes. The unary operators '+' and '-' are defined for all real numbers. '+x' is always 'x', and '-x' is always the additive inverse of 'x'.
 
Hurkyl said:
Well, yes. The unary operators '+' and '-' are defined for all real numbers. '+x' is always 'x', and '-x' is always the additive inverse of 'x'.
Thanks.

So, as I understood since 0 is a real number unary operations both + and - is defined for 0 such that +0=0 and +0+(-0)=0 (per definition of additive inverse). Since +0+(-0)=0 and +0=0 => 0+(-0)=0 => -0=0 too. Am I right?
 
+0= -0 since 0 is its own additive inverse. You might want to ask your friend whether "4" is plus or minus. There is no "+" in front of it! The standard convention is that no sign in front of a number implies "+" so "4= +4" (or "0= +0") is understood. You certainly do not need to say "|0|= +0".
 
And here I was thinking the question was about the IEEE floating point +0 vs -0 distinction (4 / -0 = -infinity in IEEE arithmetic, for example -- signs propagate as usual).
 
Thank you all. Your explanations were very clear.
 
ivan said:
Somebody asked me how absolute value of a real number can be defined. I said |a| is defined as +a if a>=0 and -a if a<0 (instead of, |a| is defined as a if a>=0 and -a if a<0). Then came an objection that with such a definition if a=0 its absolute value should be +0 and there's no such thing.

Can't one define -0 and +0 in integer number set such that +0=-0=0?

I think you avoid this complication if you explain that the definition of the absolute value of a number is its distance away from Zero.

My feeling is that thinking about absolute value as a distance helps in a lot of ways.

|x| = 2
What numbers distance away from 0 is 2? 2, and -2.

It helps more when there is other stuff inside the absolute value.
|x - 4| = 2

Here you can think about it as a numbers distance away from 4 is 2 thus the answers is 6 and 2.

|x + 4| = 2

Here same thing, a numbers distance away from -4 is 2, therefore the answers are -6 and -2.

|x - 4| = -2
This statement clearly doesn't make sense, how can a numbers distance away from 4 be -2, distances must be positive.
 
...0 is either positive or negative... it's the same.
 
I'm with CRGreathouse - +0 and -0 in IEEE format floating point operations.
That's what I though this thread was about.
 
  • #10
Is it an implied operation that:
-5 == (-1)*(5) ?
because then there would be a difference in the infinity case:

1/(-0) == 1/((-1)*(0)) = - (1/0) = -infinity

(Mathematica agrees with me)
 
  • #11
Well, first "infinity" is not a real number so you can't expect formulas for real numbers to apply.

But I'm puzzled as to what difference you see!
 
  • #12
Ephratah7 said:
...0 is either positive or negative... it's the same.
Wrong: 0 is neither positive nor negative.
 
  • #13
Hurkyl said:
Wrong: 0 is neither positive nor negative.


oppsss... ^^... sorry..^^ wrong grammar... hehe
 
  • #14
This is maybe a dumb question but I am going to ask it and maybe Hurkyl or Hallsofivy can answer it:

Could - or + 0 be dependent on how one approaches 0 at the limit (positive side or negative side)?
 

Similar threads

  • · Replies 26 ·
Replies
26
Views
1K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
3K
Replies
7
Views
2K