Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
7
Task/Fibonacci-word/Mathematica/fibonacci-word.math
Normal file
7
Task/Fibonacci-word/Mathematica/fibonacci-word.math
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
entropy = (p - 1) Log[2, 1 - p] - p Log[2, p];
|
||||
|
||||
TableForm[
|
||||
Table[{k, Fibonacci[k],
|
||||
Quiet@Check[N[entropy /. {p -> Fibonacci[k - 1]/Fibonacci[k]}, 15],
|
||||
0]}, {k, 37}],
|
||||
TableHeadings -> {None, {"N", "Length", "Entropy"}}]
|
||||
Loading…
Add table
Add a link
Reference in a new issue