Do you know where your variables are? | |
PerlMonks |
Re^5: Exponential Function Programmingby swampyankee (Parson) |
on Nov 23, 2007 at 04:40 UTC ( [id://652495]=note: print w/replies, xml ) | Need Help?? |
You do know what "factorial" means, correct? It's really easy to write a routine to calculate factorials. Just remember that 0! is defined as 1. In any case, n! is only defined for non-negative integers (the closely related gamma function is defined for all real numbers). For sufficiently large values of n, n! is approximated by Stirling's approximation.
In Section
Seekers of Perl Wisdom
|
|