Approximation of binary functions based on two-layer artificial neural network | Synapse