Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct function def of gray_to_bin and bin_to_gray #14468

Merged
merged 5 commits into from
Mar 13, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove docstring examples
Examples are included in the test suite.
  • Loading branch information
smichr authored Mar 13, 2018
commit 7a45ec9b04892d1f599643157a3d035ea4d58534
15 changes: 1 addition & 14 deletions sympy/combinatorics/graycode.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,17 +329,11 @@ def gray_to_bin(bin_list):

Examples
========

>>> from sympy.combinatorics.graycode import gray_to_bin
>>> gray_to_bin('100')
'111'

example taken from issue #117 from:- https://github.com/sympy/sympy-live/issues/117
>>>gray_to_bin('0001000010100')
'0001111100111'
>>>gray_to_bin('0001000010101')
'0001111100110'

See Also
========
bin_to_gray
Expand All @@ -363,13 +357,6 @@ def bin_to_gray(bin_list):
>>> bin_to_gray('111')
'100'

example taken from issue #117 from:- https://github.com/sympy/sympy-live/issues/117
>>>bin_to_gray('0001111100111')
'0001000010100'
>>>bin_to_gray('0001111100110')
'0001000010101'


See Also
========
gray_to_bin
Expand Down