Thread: Does any one know the value of 0^0?

  1. #1
    Hidoi Ryuujin
    Join Date
    Nov 2002
    Posts
    220

    Does any one know the value of 0^0?

    We had this issue come up in calc while discussing exponential functions and couldn't come up with a clear answer. Any one know anything useful.
    One death is a tragedy, one million... a statistic.
    -Josef Stalin

    In case I forget, I use Bloodshed Dev C++ v.4

  2. #2
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    My calculator (TI-86) gave me a domain error. I have class in about 30 mins and I'll ask the profs what they think.

    So for now I'm saying undefined

  3. #3
    Hidoi Ryuujin
    Join Date
    Nov 2002
    Posts
    220
    I know that that is what the 83 says, but apparantly there are reasons for it having certain values, but that was all my teacher could remember from some class he took ages ago.
    One death is a tragedy, one million... a statistic.
    -Josef Stalin

    In case I forget, I use Bloodshed Dev C++ v.4

  4. #4
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    I think the confusion comes due to conflicting rules

    0^x = 0
    x^0 = 1

    so 0^0 = would equal 0 and 1.

    I'll ask though. The prof that has the class before mine knows a great deal and my prof just got out of college a few years ago so she might still remember

  5. #5
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    google does miracles...ever hear of it?

    http://www.faqs.org/faqs/sci-math-fa...lnumbers/0to0/

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  6. #6
    Hidoi Ryuujin
    Join Date
    Nov 2002
    Posts
    220

    I ask for an answer and find an argument...

    That is really interesting, so apparantly they can't make up their mind about it.
    One death is a tragedy, one million... a statistic.
    -Josef Stalin

    In case I forget, I use Bloodshed Dev C++ v.4

  7. #7
    Board Conservative UnregdRegd's Avatar
    Join Date
    Jul 2003
    Posts
    154
    Off hand, I think my calculus textbook said something about the function 0^x approaching 1 as x approaches 0. However, 0^0 itself is considered to be undefined.
    I am a programmer. My first duty is to God, then to nation, then to employer, then to family, then to friends, then to computer, and finally to myself. I code with dignity, honor, and integrity.

  8. #8
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    I asked and the answer I got is that it is generally considered to be undefined but some text do define it as 1 or 0.

    Edit: I forgot they mention that when the text's do define it they do it by convention in the same manner that 0! is defined to be 1. Ok time to get rid of this headache
    Last edited by Thantos; 02-20-2004 at 03:37 PM.

  9. #9
    Registered User
    Join Date
    Oct 2003
    Posts
    29
    Code:
    #include <iostream>
    #include <cmath>
    using namespace std;
    
    int main()
    {
    cout << pow(0.0,0.0);
    cin.get();
    return 0;
    }
    out put:

    1

  10. #10
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    My university "textbook" (a collection of sheets actually) leaves it undefined. The whole thing is approached in the context of limits however. According to my textbook, the limit of something that results in an indeterminate form must be determined by looking at the functions involved. Usually the rule of l'Hospital is used.
    There are some nice examples of how the limit of another indeterminate form, 0/0, depends on the functions involved.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  11. #11
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    Windows calculator says 0^0 = 1.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  12. #12
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    I think the Windows calculator might well use the pow function internally, which obiously uses the optimization of testing the second parameter for 0 and automaticaly returning 1 in case it is.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  13. #13
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Using a C++ program or the Windows calculator would be unreliable in this case, since neither is an authority on such a definition, but is merely implementation dependent.

  14. #14
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    It doesn't exists, since the limit differs depending on which axis you move along.

    lim (x -> 0) x^0 = 1
    lim (y -> 0) 0^y = 0
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  15. #15
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    Originally posted by Magos
    It doesn't exists, since the limit differs depending on which axis you move along.

    lim (x -> 0) x^0 = 1
    lim (y -> 0) 0^y = 0
    I was following along fine until i hit this post.....thnx magos

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 0 ^ 0 = 1
    By Yarin in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 05-11-2009, 07:21 PM