Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 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