private double WspK(string pstring, Moment[] par) { switch (pstring) { case "pt": return(Oka.wspKPT(par[1].Real, par[2].Real)); case "ptx": return(Oka.wspKPTX(par[1].Real, par[2].Real, par[3].Real)); case "ph": return(Oka.wspKPH(par[1].Real, par[2].Real)); case "ps": return(Oka.wspKPS(par[1].Real, par[2].Real)); case "ptpeff": return(Oka.wspKEXPANSIONPTPEFF(par[1].Real, par[2].Real, par[3].Real, par[4].Real)); case "ptxpeff": return(Oka.wspKEXPANSIONPTXPEFF(par[1].Real, par[2].Real, par[3].Real, par[4].Real, par[5].Real)); case "hs": return(Oka.wspKHS(par[1].Real, par[2].Real)); case "sst": return(Oka.wspKSST(par[1].Real)); case "swt": return(Oka.wspKSWT(par[1].Real)); case "stx": return(Oka.wspKSTX(par[1].Real, par[2].Real)); case "mspt": return(Oka.wspKMSPT(par[1].Real, par[2].Real)); } return(double.NaN); }