using System; using static System.Math; using static System.Console; public class network{ public vector p; public Func f; public readonly int n; public network(int n, Func f){ this.n=n; this.f=f; this.p=new vector(3*n); } public double feed(double x){ double sum=0; for(int i=0;i mismatch=(u)=>{ ncalls++; p=u; double sum=0; for(int k=0;k