Bernoulli Numbers
by Paolo Panarese
24 Mar 2005
(Updated 28 Mar 2005)
Given positive integer k, generate the k-th bernoulli number.
|
Watch this File
|
| File Information |
| Description |
Bernoulli numbers are obtained from the series expansion of the function
z/(exp(z) -1 ) = sum(a(k)*z^k);
Then the k-th Bernoulli number is defined as
B(k) = k! * a(k);
These numbers are related to the sum of the p-th powers of consecutive n integers (from 1 to n-1) and define:
S(n,p) = sum((1:n-1).^p)
See http://numbers.computation.free.fr/Constants/Miscellaneous/bernoulli.html#CITEDilcher |
| MATLAB release |
MATLAB 7.0.1 (R14SP1)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
|
Contact us at files@mathworks.com