Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
factorial_function [2015/11/14 03:07] nikolaj |
factorial_function [2015/11/14 03:07] nikolaj |
||
---|---|---|---|
Line 14: | Line 14: | ||
</code> | </code> | ||
+ | e.g. | ||
+ | |||
+ | <code> | ||
0! = + 0^0 | 0! = + 0^0 | ||
1! = - 0^1 + 1*1^1, | 1! = - 0^1 + 1*1^1, | ||
Line 23: | Line 26: | ||
7! = - 0^7 + 7*1^7 - 21*2^7 + 35*3^7 - 35*4^7 + 21*5^7 - 7*6^7 + 7^7, | 7! = - 0^7 + 7*1^7 - 21*2^7 + 35*3^7 - 35*4^7 + 21*5^7 - 7*6^7 + 7^7, | ||
8! = + 0^8 - 8*1^8 + 28*2^8 - 56*3^8 + 70*4^8 - 56*5^8 + 28*6^8 - 8*7^8 + 8^8 | 8! = + 0^8 - 8*1^8 + 28*2^8 - 56*3^8 + 70*4^8 - 56*5^8 + 28*6^8 - 8*7^8 + 8^8 | ||
+ | </code> | ||
The binomial coefficients use the factorial of course, so there's not real computational benefit. | The binomial coefficients use the factorial of course, so there's not real computational benefit. |