private double WspJOULETHOMPSON(string pstring, Moment[] par) { switch (pstring) { case "pt": return(Oka.wspJOULETHOMPSONPT(par[1].Real, par[2].Real)); case "ptx": return(Oka.wspJOULETHOMPSONPTX(par[1].Real, par[2].Real, par[3].Real)); case "ph": return(Oka.wspJOULETHOMPSONPH(par[1].Real, par[2].Real)); case "ps": return(Oka.wspJOULETHOMPSONPS(par[1].Real, par[2].Real)); case "ptpeff": return(Oka.wspJOULETHOMPSONEXPANSIONPTPEFF(par[1].Real, par[2].Real, par[3].Real, par[4].Real)); case "ptxpeff": return(Oka.wspJOULETHOMPSONEXPANSIONPTXPEFF(par[1].Real, par[2].Real, par[3].Real, par[4].Real, par[5].Real)); case "hs": return(Oka.wspJOULETHOMPSONHS(par[1].Real, par[2].Real)); case "sst": return(Oka.wspJOULETHOMPSONSST(par[1].Real)); case "swt": return(Oka.wspJOULETHOMPSONSWT(par[1].Real)); case "stx": return(Oka.wspJOULETHOMPSONSTX(par[1].Real, par[2].Real)); case "mspt": return(Oka.wspJOULETHOMPSONMSPT(par[1].Real, par[2].Real)); } return(double.NaN); }