Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
6
Task/Bernoulli-numbers/FunL/bernoulli-numbers.funl
Normal file
6
Task/Bernoulli-numbers/FunL/bernoulli-numbers.funl
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import integers.choose
|
||||
|
||||
def B( n ) = sum( 1/(k + 1)*sum((if 2|r then 1 else -1)*choose(k, r)*(r^n) | r <- 0..k) | k <- 0..n )
|
||||
|
||||
for i <- 0..60 if i == 1 or 2|i
|
||||
printf( "B(%2d) = %s\n", i, B(i) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue