{"push_id":585322095,"size":4,"distinct_size":0,"ref":"refs/heads/master","head":"4031c552b150fcb1d865ebc322d068170810ffe2","before":"cbdd0727bc3ded8c956610518298f7fedcf682f2","commits":[{"sha":"760bfd88e900c6b6324d19fe9ea5a2b4aa9fde75","author":{"email":"f4a40e42596f1026ca8ce56852b8863649748ff2@gmail.com","name":"KoStiG"},"message":"logic: generate truth table for boolean expression\n\nGenerating truth tables for boolean expressions.\nConverting from binary to decimal.\nConverting from decimal to binary.\n\nExample:\n\nIn [1]: from sympy.logic.boolalg import term_to_integer\n\nIn [2]: term_to_integer('10011010')\nOut[2]: 154\n\nIn [3]: from sympy.logic.boolalg import integer_to_term\n\nIn [4]: integer_to_term(777)\nOut[4]: [1, 1, 0, 0, 0, 0, 1, 0, 0, 1]\n\nIn [5]: from sympy.logic.boolalg import truth_table\n\nIn [6]: truth_table('a | b | c', ['a', 'b', 'c'])\nOut[6]: [0, 1, 1, 1, 1, 1, 1, 1]","distinct":false,"url":"https://api.github.com/repos/KoStiG/sympy/commits/760bfd88e900c6b6324d19fe9ea5a2b4aa9fde75"},{"sha":"e4faa9339ca979d7895e15b52f67b7da1e71c70d","author":{"email":"f4a40e42596f1026ca8ce56852b8863649748ff2@gmail.com","name":"KoStiG"},"message":"logic: Generating truth table\n\nAdded three functions: truth_table, term_to_integer, integer_to_term.\n\nFunction term_to_integer converts string or a list of ones and zeros to integer.\n\nFunction integer_to_term converts decimal to binary. Also this functions\ncan be used to obtain k-th term in n variables, and to obtain list of\ntruth values of k-th function of n variables.\n\nFunction truth_table returns a generator of all possible configurations of\nthe input variables, and the result of the boolean expression for those\nvalues.\n\nExample:\n\nIn [1]: from sympy.logic.boolalg import truth_table\n\nIn [2]: from sympy.abc import x, y\n\nIn [3]: table = truth_table(x ^ y, [x, y])\n\nIn [4]: for row in table:\n   ...:     print 'term:', row[0], ', value:', row[1]\n   ...:\nterm: [0, 0] , value: False\nterm: [0, 1] , value: True\nterm: [1, 0] , value: True\nterm: [1, 1] , value: False","distinct":false,"url":"https://api.github.com/repos/KoStiG/sympy/commits/e4faa9339ca979d7895e15b52f67b7da1e71c70d"},{"sha":"784812e72a6f733bdee05fe0a13484ddc386c9af","author":{"email":"f4a40e42596f1026ca8ce56852b8863649748ff2@gmail.com","name":"KoStiG"},"message":"Merge branch 'master' into truthtable\n\nConflicts:\n\tsympy/logic/tests/test_boolalg.py","distinct":false,"url":"https://api.github.com/repos/KoStiG/sympy/commits/784812e72a6f733bdee05fe0a13484ddc386c9af"},{"sha":"4031c552b150fcb1d865ebc322d068170810ffe2","author":{"email":"f4a40e42596f1026ca8ce56852b8863649748ff2@gmail.com","name":"KoStiG"},"message":"changing docstrings","distinct":false,"url":"https://api.github.com/repos/KoStiG/sympy/commits/4031c552b150fcb1d865ebc322d068170810ffe2"}]}