[Edu-sig] Bernoulli Numbers (a generator)
gregor.lingl at aon.at
Wed Jul 15 22:16:48 CEST 2009
Very interesting issue, superbly documented by Kirby, thanks!
May I contribute a slightly streamlined version of the seidel-generator:
see attachment. (Please check if everything is correct.)
kirby urner schrieb:
> Just adding to what's on file, not sure this is a "must have" but it's
> fun to do, especially given the association of Bernoulli Numbers with
> "the first computer program" as scoped out in Ada's notes:
> http://www.flickr.com/photos/17157315@N00/3718903352/sizes/o/ (shell
> view, Akbar font)
> http://www.4dsolutions.net/ocn/python/ada.py (source code)
> According to Wikipedia, this is similar to what Knuth recommends i.e.
> we're staying with integer operations, although I'm using the Fraction
> type to output results (Bernoulli numbers are fractions with lots of
> digits once you get into 'em, ideal grist for the mill when learning
> about Python generators).
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Edu-sig