Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | utility | |
Module | mathematics | |
Tool | lsfit |
lsf.init(nuk); # initialise matrix and vector for (i in [1:(nuk-1)]) { for (j in [(i+1):nuk]) { aa := rep(0,nuk); # coefficient vector aa[i] := 1; aa[j] := 1; lsf.accumulate(aa,yy1[i],wgt[i]); # accumulate equation } } xx1 := lsf.solve(); # solve for input vector yy1 lsf.inityonly(); # initialise matrix and vector for (i in [1:(nuk-1)]) { for (j in [(i+1):nuk]) { aa := rep(0,nuk); # coefficient vector aa[i] := 1; aa[j] := 1; lsf.accumulate(aa,yy2[i]); # accumulate equation } } xx2 := lsf.solve(); # solve for vector yy2