/* Neural Lab C link Eyebot Example */ /* Basic XOR gate */ /* Copyright 2000 - Zagros Robotics */ /* by AJ Neal */ /* This example program acts as a simple XOR gate created using Neural Lab. XOR GATE TRUTH TABLE INPUTS OUTPUT 0 0 0 0 1 1 1 0 1 1 1 0 */ #include "c:/EYEBOT/MC/INCLUDE/eyebot.h" #include #include #include int function=1; int laynum=3; int snum[3]={2,8,1}; float W[24]={ 0.400180, 0.145211, 0.761415, 5.363467, 5.550502, -1.531479, 0.043131, -1.121034, 0.689130, 0.945761, 0.362040, 5.071275, -2.524523, 3.663692, 1.094905, 2.896029, -1.088969, -1.253017, -1.008614, 11.501174, -5.406621, -3.354352, -1.170112, -2.586737}; int nxtlay(int a,int b,int l,int *snum) { int total=0; int i=0; /* calc layer layer total */ while(i