Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. which one is smaller n pow 2, 1000 pow n, n pow n, n pow 1000 , when n value is nearer to infinite

which one is smaller n pow 2, 1000 pow n, n pow n, n pow 1000 , when n value is nearer to infinite

Scheduled Pinned Locked Moved C#
helpquestion
10 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    huma satti
    wrote on last edited by
    #1

    hi! i have a question. that is we have ha a problem "which one is smaller n pow 2, 1000 pow n, n pow n, n pow 1000 , when n value is nearer to infinite" plz also give reason along with answer Best Regards, Huma Satti

    G C L A 4 Replies Last reply
    0
    • H huma satti

      hi! i have a question. that is we have ha a problem "which one is smaller n pow 2, 1000 pow n, n pow n, n pow 1000 , when n value is nearer to infinite" plz also give reason along with answer Best Regards, Huma Satti

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      Double Post and incorrect forum.

      Giorgi Dalakishvili #region signature my articles #endregion

      modified on Monday, May 5, 2008 3:11 AM

      1 Reply Last reply
      0
      • H huma satti

        hi! i have a question. that is we have ha a problem "which one is smaller n pow 2, 1000 pow n, n pow n, n pow 1000 , when n value is nearer to infinite" plz also give reason along with answer Best Regards, Huma Satti

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        I suggest you do your own homework. I guess you are posting this here because you've been asked to use C# to prove your answer ? How is that not trivial ?

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        H 1 Reply Last reply
        0
        • H huma satti

          hi! i have a question. that is we have ha a problem "which one is smaller n pow 2, 1000 pow n, n pow n, n pow 1000 , when n value is nearer to infinite" plz also give reason along with answer Best Regards, Huma Satti

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          Hi, there exist a lot of functions f(x) for which the following holds: x < y is equivalent to f(x) < f(y) Some of them also require x>0. Examples are square root and logarithm. :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          I dislike the black-and-white voting system on questions/answers. X|


          V H 2 Replies Last reply
          0
          • L Luc Pattyn

            Hi, there exist a lot of functions f(x) for which the following holds: x < y is equivalent to f(x) < f(y) Some of them also require x>0. Examples are square root and logarithm. :)

            Luc Pattyn [Forum Guidelines] [My Articles]


            I dislike the black-and-white voting system on questions/answers. X|


            V Offline
            V Offline
            Vikram A Punathambekar
            wrote on last edited by
            #5

            Luc Pattyn wrote:

            I dislike the black-and-white voting system on questions/answers.

            On the contrary, I like it very much - I think it's simple and elegant :) I wish more people use the system, and very bad questions should perhaps be deleted.

            Cheers, Vikram.


            The hands that help are holier than the lips that pray.

            1 Reply Last reply
            0
            • C Christian Graus

              I suggest you do your own homework. I guess you are posting this here because you've been asked to use C# to prove your answer ? How is that not trivial ?

              Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

              H Offline
              H Offline
              huma satti
              wrote on last edited by
              #6

              "MANHOOS ADAMI": ITS NOT MA HOME WORK OK NA ........... IF U WANA GIV ANS OV IT THN GIV. DNT TRY TO OVER SMART...:-P:mad:

              L 1 Reply Last reply
              0
              • L Luc Pattyn

                Hi, there exist a lot of functions f(x) for which the following holds: x < y is equivalent to f(x) < f(y) Some of them also require x>0. Examples are square root and logarithm. :)

                Luc Pattyn [Forum Guidelines] [My Articles]


                I dislike the black-and-white voting system on questions/answers. X|


                H Offline
                H Offline
                huma satti
                wrote on last edited by
                #7

                ;)

                1 Reply Last reply
                0
                • H huma satti

                  hi! i have a question. that is we have ha a problem "which one is smaller n pow 2, 1000 pow n, n pow n, n pow 1000 , when n value is nearer to infinite" plz also give reason along with answer Best Regards, Huma Satti

                  A Offline
                  A Offline
                  Anthony Mushrow
                  wrote on last edited by
                  #8

                  Well, you could just check with smaller numbers. Lets use 4 to help us out a little: 4^2 = 16 1000^4 = 1000000000000 So, from this it seems 1000^n is greater. n^n has the potential to be greater than n^1000. If n<1000 then n^1000 will be bigger. Since you said the numbers will be massive n^n is definately bigger. And once again assuming n > 1000 n^n is bigger than 1000^n so we end up with (from biggest to smallest) n^n 1000^n n^1000 n^2 So what we can see is that anything to the power of n has the potential to be much larger. So anything^n is at the top. After that you can just sort them by how large the static numbers are (in your case n should be considered larger than any static number) To be honest, i don't really know why you asked this question, and why you asked it here. I see no relation to C#, and you could have just typed some numbers into a calculator to see which is bigger. Infact, its pretty obvious which is going to be the smallest, after you think about it for a bit.

                  My current favourite word is: Bacon!

                  -SK Genius

                  enhzflepE 1 Reply Last reply
                  0
                  • A Anthony Mushrow

                    Well, you could just check with smaller numbers. Lets use 4 to help us out a little: 4^2 = 16 1000^4 = 1000000000000 So, from this it seems 1000^n is greater. n^n has the potential to be greater than n^1000. If n<1000 then n^1000 will be bigger. Since you said the numbers will be massive n^n is definately bigger. And once again assuming n > 1000 n^n is bigger than 1000^n so we end up with (from biggest to smallest) n^n 1000^n n^1000 n^2 So what we can see is that anything to the power of n has the potential to be much larger. So anything^n is at the top. After that you can just sort them by how large the static numbers are (in your case n should be considered larger than any static number) To be honest, i don't really know why you asked this question, and why you asked it here. I see no relation to C#, and you could have just typed some numbers into a calculator to see which is bigger. Infact, its pretty obvious which is going to be the smallest, after you think about it for a bit.

                    My current favourite word is: Bacon!

                    -SK Genius

                    enhzflepE Offline
                    enhzflepE Offline
                    enhzflep
                    wrote on last edited by
                    #9

                    SK Genius wrote:

                    To be honest, i don't really know why you asked this question, and why you asked it here. < snip > Infact, its pretty obvious which is going to be the smallest, after you think about it for a bit.

                    Yup, that's what I thought till I saw these two pages :wtf: http://www.codeproject.com/script/Forums/LatestComments.aspx?fmid=4320368[^] http://www.codeproject.com/script/Forums/View.aspx?fid=326859&msg=2536626[^]

                    1 Reply Last reply
                    0
                    • H huma satti

                      "MANHOOS ADAMI": ITS NOT MA HOME WORK OK NA ........... IF U WANA GIV ANS OV IT THN GIV. DNT TRY TO OVER SMART...:-P:mad:

                      L Offline
                      L Offline
                      leckey 0
                      wrote on last edited by
                      #10

                      You need to read the forum guidelines. This is obviously a homework question. We only help people who are at least willing to solve the problem. We don't accept text speak nor we do not tolerate people who are rude to other members. Mangoos adami? This is also an English speaking forum. Congrats! You made my list of CP violators.

                      New feature! Scroll down to see CP offenders! Current rant: "The 50 Greatest Comedy Skits of All-Time!" http://craptasticnation.blogspot.com/[^]

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups