Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

0, odd or even?

  1. Apr 19, 2007 #1
    Is 0 an odd or even number? The reason why I ask is this:

    I need to write cosh(x) as the sum of an even and odd function. I could only come up with cosh(x) = cosh(x) + 0, where cosh(x) would be the even and 0odd. However, this doesn't make any sense since 0 is exactly divisible by 2 with no remainder, hence it is even. So which one is it?
     
  2. jcsd
  3. Apr 19, 2007 #2

    matt grime

    User Avatar
    Science Advisor
    Homework Helper

    0 is an even number.


    But that has nothing to do with writing cosh as a sum of odd and even *functions*.
     
  4. Apr 19, 2007 #3

    HallsofIvy

    User Avatar
    Staff Emeritus
    Science Advisor

    The definition of an "even" function is that f(-x)= f(x). The definition of "odd" function is f(-x)= -f(x). If f(x)= 0 for all x then f(-x)= 0= -0= -f(x) but also f(-x)= 0= f(x) so f(x)= 0, the constant function, is both even and odd.
    However, as matt grime said, that has nothing to do with the fact that 0 = 2(0) is an even number.

    cosh(x) is already an even function. sinh(x) is an odd function. In fact,
    ex= cosh(x)+ sinh(x). cosh(x) and sinh(x) are the even and odd "parts" of ex.
     
  5. Apr 20, 2007 #4
    0 mod 2 = 0, it means that 0 is even :rolleyes:
     
  6. Apr 20, 2007 #5
    In general, given a function f, you can write it as the sum of an even function and an odd function as follows:

    [itex]f_{even}(x) = (f(x) + f(-x))/2[/itex]
    [itex]f_{odd}(x) = (f(x) - f(-x))/2[/itex]
     
  7. Apr 20, 2007 #6

    mathwonk

    User Avatar
    Science Advisor
    Homework Helper
    2015 Award

    what about 6? is it odd or even?
     
  8. Apr 21, 2007 #7

    HallsofIvy

    User Avatar
    Staff Emeritus
    Science Advisor

    Okay, I'll bite: even?


    Actually, a more interesting question would be whether 5 is odd or even.

    The number 5 is obviously odd.

    The constant function (which is what this thread is really about), f(x)= 5, is even.
     
  9. Apr 22, 2007 #8

    mathwonk

    User Avatar
    Science Advisor
    Homework Helper
    2015 Award

    good point, so the answer to the OPs question is "yes".

    i.e. all constant functions are even and one of them is also odd.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Similar Discussions: 0, odd or even?
  1. Even or odd? (Replies: 16)

  2. Even or odd (Replies: 1)

Loading...