Thanks to visit codestin.com
Credit goes to github.com

Skip to content

modified invalid min/max terms error - #289

Open
yashu-seth wants to merge 1 commit into
BinPy:developfrom
yashu-seth:fixes_in_make_boolean_function
Open

modified invalid min/max terms error#289
yashu-seth wants to merge 1 commit into
BinPy:developfrom
yashu-seth:fixes_in_make_boolean_function

Conversation

@yashu-seth

Copy link
Copy Markdown
Contributor

I found that on giving the following input -

>>> from BinPy import *
>>> make_boolean(['A', 'B', 'C'], [1, 14, 7], minterms=True)

The following output comes -

('((A AND (NOT B) AND (NOT C)) OR (A AND B AND C) OR ((NOT A) AND B AND C))', 'OR(AND(A, NOT(B), NOT(C)), AND(A, B, C), AND(NOT(A), B, C))')

Which is ambiguous. I know the input itself is flawed but I think on giving such input error should be displayed and not an ambiguous result.
Please look into it.
If you find the change reasonable, kindly inform me so that I will edit the tests as well.

@yashu-seth
yashu-seth force-pushed the fixes_in_make_boolean_function branch from 2acc307 to 063feac Compare October 6, 2015 10:20
@yashu-seth

Copy link
Copy Markdown
Contributor Author

@OrkoHunter @salil93 @rvraghav93 please have a look at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant