Bernoulli numbers

From Rosetta Code
Revision as of 07:47, 11 March 2014 by rosettacode>Gerard Schildberger (add a Rosetta Code task.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Bernoulli numbers is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

Bernoulli numbers

Bernoulli numbers are used in some series expansions of serval functions (trigonometric, hyperbolic, gamma, etc.), and are extremely important in number theory and analysis.

There are two definitions of Bernoulli numbers;   this task will be using the modern usage (as per the National Institute of Standards and Technology convention), and are expressed as   Bn.

task requirements

  • show the Bernoulli numbers   B0   through   B60.
  • express the numbers as fractions (most are improper fractions).
  • suppress all 0 (zero) values suppressed.
  • index each number in some way so that it can be discerned which number is being displayed.

(Other than   B1,   all odd Bernoulli have a value of 0 (zero).