[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Factorial Elegance



On Fri, Sep 15, 2000 at 11:37:52AM -0500, Tim Ayers wrote:
> 
> You lost me here. I am not a mathematician. I learned enough math so
> they would give me my diploma and got the hell out of there. But I
> thought factorials are not defined for N < 0. So I thought that
> returning 'undef' if $x < 0 would be okay. I'm definitely curious.


Yeah, you are right. The factorial function can be generalized to all
complex numbers, except for negative integers (z! = infinity for negative
integers z).

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


Abigail

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe