These functions present a complete implementation of the
definitions given in the introduction. The main function
NET learns the well known XOR (exclusive or) mapping.
For reasons of simplicity, the input-output mapping of the XOR
function is coded into the function NET.