Index: trunk/Ohana/src/opihi/cmd.data/test/nnet.sh
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/test/nnet.sh	(revision 40321)
+++ trunk/Ohana/src/opihi/cmd.data/test/nnet.sh	(revision 40322)
@@ -3,4 +3,7 @@
 
   nnet create t0 5 10 15 3
+  nnet list
+
+  nnet create t1 6 4 5
   nnet list
 
@@ -122,2 +125,36 @@
 end
 
+macro test.simple
+
+  # create a nnet with just 2 inputs and 2 outputs
+  nnet create t1 2 2
+
+  # biases:
+  vlist v1 0.5 0.0
+
+  # weights
+  mcreate m1 2 2
+  m1[0][0] =  0.5
+  m1[1][0] = -0.2
+  m1[0][1] = -0.5
+  m1[1][1] =  0.2
+
+  # set weights and biases
+  nnet set t1 m1 v1
+
+  # generate an input set spanning the range -5 to +5
+
+  create n 0 1000
+  set x0 = 10*rnd(n) - 5.0
+  set x1 = 10*rnd(n) - 5.0
+
+  # get output vectors the these input vectors
+  nnet apply t1 x0 x1 y0 y1
+
+  nnet create tn 2 2
+  nnet train tn x0 x1 y0 y1 -Nmini 50 -Nepoch 50
+
+  nnet apply tn x0 x1 Y0 Y1
+  lim x0 y0; clear; box; plot -c black x0 y0; plot -c red x0 Y0
+end
+
