Re: Is zero even or odd?

From: Jim Thompson (thegreatone_at_example.com)
Date: 12/20/04


Date: Mon, 20 Dec 2004 09:07:37 -0700

On Mon, 20 Dec 2004 14:34:03 -0000, BB <BB@BB.BB> wrote:

>Josef Moellers wrote:
>>
>> Gactimus wrote:
>> > I know 0 is neither negative or positive but what about odd/even? I think
>> > it's even.
>> >
>> > Odd numbers start at 1 and go every other number 1,3,5,7;1,-1,-3,-5,-7
>> > Even starts at 2 and go every other number 2,4,6,8;2,0,-2,-4,-6,-8
>>
>> As it can be divided by 2 without a remainder, it is obviously even.
>
>The divisor would have to be something smaller than 0 like -2.
>Therefore zero is both even and negative.
>
>>
>> --
>> Josef Möllers (Pinguinpfleger bei FSC)
>> If failure had no penalty success would not be a prize
>> -- T. Pratchett
>

PSpice uses...

  +1 if x>0
 SGN(x) = 0 if x=0
  -1 if x<0

which matches up with what is shown on Wolfram's site...

http://mathworld.wolfram.com/Sign.html

A real royal nuisance when applying SGN(x) to system behavioral
modeling.

                                        ...Jim Thompson

-- 
|  James E.Thompson, P.E.                           |    mens     |
|  Analog Innovations, Inc.                         |     et      |
|  Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
|  Phoenix, Arizona            Voice:(480)460-2350  |             |
|  E-mail Address at Website     Fax:(480)460-2142  |  Brass Rat  |
|       http://www.analog-innovations.com           |    1962     |
             
I love to cook with wine.      Sometimes I even put it in the food.


Relevant Pages

  • Re: Is zero even or odd?
    ... >> As it can be divided by 2 without a remainder, ... >Therefore zero is both even and negative. ... >> Josef Möllers (Pinguinpfleger bei FSC) ...
    (sci.electronics.design)
  • Re: Is zero even or odd?
    ... >> As it can be divided by 2 without a remainder, ... >Therefore zero is both even and negative. ... >> Josef Möllers (Pinguinpfleger bei FSC) ...
    (sci.physics)
  • Re: Is zero even or odd?
    ... >> As it can be divided by 2 without a remainder, ... >Therefore zero is both even and negative. ... >> Josef Möllers (Pinguinpfleger bei FSC) ...
    (sci.astro)
  • Re: Is zero even or odd?
    ... >> As it can be divided by 2 without a remainder, ... >Therefore zero is both even and negative. ... >> Josef Möllers (Pinguinpfleger bei FSC) ...
    (sci.math)
  • Re: Problem(s) with round-to-nearest
    ... the usual integer division, etc. correspond to rounding towards zero, ... remainder, I have reduced the problem analytically to an equation ... For the Nth-Root function: d is never zero... ...
    (sci.math)