
# coding: utf-8

### An example to demostrate the usage of make boolean function.

# In[1]:

from __future__ import print_function
from BinPy.algorithms.makebooleanfunction import *


# In[2]:

# Usage of make_boolean() function
logical_expression, gate_form = make_boolean(['A', 'B', 'C'], [1, 4, 7], minterms=True)


# In[3]:

# Print the logical function
print(logical_expression)


# In[4]:

# Print the gate form
print(gate_form)


# In[5]:

# Another example
logical_expression, gate_form = make_boolean(['A', 'B', 'C', 'D'], [1, 4, 7, 0], maxterms=True)


# In[6]:

# Print the logical function
print(logical_expression)


# In[7]:

# Print the gate form
print(gate_form)


# -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>

# <headingcell level=2>

# An example to demostrate the usage of make boolean function.

# <codecell>

from __future__ import print_function
from BinPy.algorithms.makebooleanfunction import *

# <codecell>

# Usage of make_boolean() function
logical_expression, gate_form = make_boolean(['A', 'B', 'C'], [1, 4, 7], minterms=True)

# <codecell>

# Print the logical function
print(logical_expression)

# <codecell>

# Print the gate form
print(gate_form)

# <codecell>

# Another example
logical_expression, gate_form = make_boolean(['A', 'B', 'C', 'D'], [1, 4, 7, 0], maxterms=True)

# <codecell>

# Print the logical function
print(logical_expression)

# <codecell>

# Print the gate form
print(gate_form)


Update python sources for algorithms
Update python sources for algorithms
