#include int main (void) { //~int input [] = { 0, 0, 1, 1, 0, 1, 0, 1 }, output [] = { 0, 0, 0, 1 }; /* AND */ //~int input [] = { 0, 0, 1, 1, 0, 1, 0, 1 }, output [] = { 0, 1, 1, 1 }; /* OR */ int input [] = { 0, 0, 1, 1, 0, 1, 0, 1 }, output [] = { 0, 1, 1, 0 }; /* XOR */ neuron_initialize (2, 4, input, output); neuron_configure (); //~neuron_system [0] = 0; /* AND */ //~neuron_system [1] = 0; //~neuron_system [2] = 0; //~neuron_system [3] = 1; //~neuron_system [0] = 0; /* OR */ //~neuron_system [1] = 1; //~neuron_system [2] = 1; //~neuron_system [3] = -1; neuron_system [0] = 0; /* XOR */ neuron_system [1] = 1; neuron_system [2] = 1; neuron_system [3] = -2; neuron_print (); neuron_deinitialize (); return (EXIT_SUCCESS); }