+{-# OPTIONS -package lang #-}
+
module Main(main) where
+import Int( Num(fromInt) )
+
newtype RNG_State = RNG_State (Int, Int, Int)
new_random i = RNG_State (i `mod` 30269, i `mod` 30307, i `mod` 30323)
out_err = vscale (vsub out_pat out_act) out_act
hid_err = vscale (vmmul out_err h_o_wt) hid_act
-main = ans
+main = putStrLn (show ans)
where (in1,out1) = head patterns
nin = length in1
nhid = nin