using System; public static partial class matlib{ public static (vector,matrix) lsfit( Func[] fs, vector x, vector y, vector dy){ int n = x.size, m=fs.Length; var A = new matrix(n,m); var b = new vector(n); for(int i=0;i