Faulhaber's triangle: Difference between revisions

(Added Algol 68)
Line 38:
 
=={{header|ALGOL 68}}==
UsingcodeUsing code from the Algol 68 samples for the [[Arithmetic/Rational]] and [[Bernoulli numbers]] tasks and the Algol W sample for the [[Evaluate binomial coefficients]] task. The code to calculate the coefficients for a row of the triangle is based on the C sample.<br>
Note that in the Bernoulli numbers task, the Algol 68 sample returns -1/2 for B(1) - this is modified here so B(1) is 1/2.
<syntaxhighlight lang="algol68">
3,043

edits