CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 3 of 3 FirstFirst 123
Results 31 to 41 of 41

Thread: n factorial

  1. #31
    Join Date
    Nov 2002
    Location
    Los Angeles, California
    Posts
    3,863
    Originally posted by Bassman
    I thought he was full of s*, too (no offense, man), so I googled and found,

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

    Check out (7).

    AAAIAIAIAGH!!! INTEGRALS SCARY!!!! AIGH!!

    Peace,
    Bassman

    Well I am always full of s*
    I had to teach this stuff at one point to a bunch of engineering students who kept asking "why do we have to learn this". Lots of fun
    Last edited by souldog; June 5th, 2003 at 12:17 PM.
    Wakeup in the morning and kick the day in the teeth!! Or something like that.

    "i don't want to write leak free code or most efficient code, like others traditional (so called expert) coders do."

  2. #32
    Join Date
    Nov 2001
    Location
    Beyond Juslibol
    Posts
    1,688
    Really the gamma function is a definite integral. But one thing is the factorial of a number and other thing the Gamma function of a number. And yes, for positive integers they are almost the same.

    Gamma(x+1)=x!

  3. #33
    Join Date
    Nov 2002
    Location
    Los Angeles, California
    Posts
    3,863
    ?

    The factorial of any complex number except for negative integers
    IS defined. I for one do not argue with definitions. Instead I try to understand why they are useful.
    Let me tell you that extensions of the familiar real valued functions with real domian into the complex plane is very useful.
    Another example is the complex exponential which is the most important function in the universe.
    Last edited by souldog; June 5th, 2003 at 12:42 PM.
    Wakeup in the morning and kick the day in the teeth!! Or something like that.

    "i don't want to write leak free code or most efficient code, like others traditional (so called expert) coders do."

  4. #34
    Join Date
    Nov 2001
    Location
    Beyond Juslibol
    Posts
    1,688
    Originally posted by souldog
    ?

    The factorial of any complex number except for negative integers
    IS defined. I for one do not argue with definitions
    I will not argue about this. I think this has gone off topic.

  5. #35
    Join Date
    Aug 2002
    Posts
    58
    (Taking the piss) What's there to argue about?

    n! is defined as Gamma(n + 1) for all complex numbers > 0. For positive integers, n! is also defined as n * n-1 * n-2 * ... * 3 * 2.

    And BTW, you were the one who asked for a definition from souldog, and now that you've got it, you're unhappy and the thread is 'off-topic'? Sheesh dude.

    Peace,
    Bassman
    (a little grumpy today)

  6. #36
    Join Date
    Nov 2002
    Location
    Los Angeles, California
    Posts
    3,863
    Originally posted by Doctor Luz
    I will not argue about this. I think this has gone off topic.
    I didn't mean this as an arguement. I was simply trying to point out the correct way to approach mathematics.
    Wakeup in the morning and kick the day in the teeth!! Or something like that.

    "i don't want to write leak free code or most efficient code, like others traditional (so called expert) coders do."

  7. #37
    Join Date
    Nov 2001
    Location
    Beyond Juslibol
    Posts
    1,688
    Originally posted by Bassman
    (Taking the piss) What's there to argue about?

    n! is defined as Gamma(n + 1) for all complex numbers > 0. For positive integers, n! is also defined as n * n-1 * n-2 * ... * 3 * 2.

    And BTW, you were the one who asked for a definition from souldog, and now that you've got it, you're unhappy and the thread is 'off-topic'? Sheesh dude.

    Peace,
    Bassman
    (a little grumpy today)
    Not, I'm not unhappy.

  8. #38
    Join Date
    Nov 2001
    Location
    Beyond Juslibol
    Posts
    1,688
    Originally posted by souldog
    I didn't mean this as an arguement. I was simply trying to point out the correct way to approach mathematics.
    OK, I wanted to say that the original question is about n! with integers, then there is no need to discuss in this thread about the "extended" factorial function. Only that!

  9. #39
    Join Date
    Aug 2002
    Posts
    58
    Doctor Luz said:

    I never heard about a complex factorial.

    Can you provide a definition? for example (a+bi)! with b!=0?
    ... and later ...

    OK, I wanted to say that the original question is about n! with integers, then there is no need to discuss in this thread about the "extended" factorial function. Only that!
    (flip/flop)

    ...

    Bassman
    (both grumpy and picky now)

  10. #40
    Join Date
    Jun 2001
    Location
    Switzerland
    Posts
    4,443
    Guys, what about letting this thread die in peace, without flamewar, hummm? Please?
    Gabriel, CodeGuru moderator

    Forever trusting who we are
    And nothing else matters
    - Metallica

    Learn about the advantages of std::vector.

  11. #41
    Join Date
    Aug 2002
    Posts
    58
    Yeah, sorry, my fault - I shouldn't be such a boob. Like I said, I'm grumpy today. Stupid COM objects...



    Peace,
    Bassman

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured