Another update from ingydotnet^djgoku

This commit is contained in:
Ingy döt Net 2015-11-18 06:14:39 +00:00
parent 91df62d461
commit 948b86eafa
7604 changed files with 108452 additions and 22726 deletions

View file

@ -0,0 +1,10 @@
defmodule RC do
def multifactorial(n,d) do
List.foldl(:lists.seq(n,1,-d), 1, fn x,p -> x*p end)
end
end
Enum.each(1..5, fn d ->
multifac = Enum.map(1..10, fn n -> RC.multifactorial(n,d) end)
IO.puts "Degree #{d}: #{inspect multifac}"
end)