Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 3cbfac6

Browse files
committed
23950: fix doctest
1 parent 49c6ff7 commit 3cbfac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/coding/code_bounds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ def entropy(x, q=2):
578578
sage: codes.bounds.entropy(0, 2)
579579
0
580580
sage: codes.bounds.entropy(1/5,4).factor()
581-
1/10*(log(3) - 4*log(4/5) - log(1/5))/log(2)
581+
1/10*(log(5) + log(3) - 4*log(4/5))/log(2)
582582
sage: codes.bounds.entropy(1, 3)
583583
log(2)/log(3)
584584

0 commit comments

Comments
 (0)