public static List <double?> Table_5_8(List <double> z, double b, double l, TypeFound typeFound = TypeFound.Прямоугольный, PointFound ptFound = PointFound.Центр) { List <double?> res = new List <double?>(); double nu, ksi; foreach (double item in z) { if (ptFound == PointFound.Центр) { ksi = 2 * item / b; } else { ksi = item / b; } if (typeFound == TypeFound.Прямоугольный && l / b < 10) { nu = l / b; res.Add(BilinearInterpolation(table_5_8_ksi, table_5_8_nu, table_5_8_R, ksi, nu)); } if (typeFound == TypeFound.Ленточный || l / b >= 10) { res.Add(LinearInterpolation(table_5_8_ksi, table_5_8_L, ksi)); } if (typeFound == TypeFound.Круглый) { res.Add(LinearInterpolation(table_5_8_ksi, table_5_8_C, ksi)); } } return(res); }
public static double?table_5_8(double z, double b, double l, TypeFound typeFound = TypeFound.Прямоугольный, PointFound ptFound = PointFound.Центр) { double nu, ksi; if (ptFound == PointFound.Центр) { ksi = 2 * z / b; } else { ksi = z / b; } if (typeFound == TypeFound.Прямоугольный && l / b < 10) { nu = l / b; return(BilinearInterpolation(table_5_8_ksi, table_5_8_nu, table_5_8_R, ksi, nu)); } if (typeFound == TypeFound.Ленточный || l / b >= 10) { return(LinearInterpolation(table_5_8_ksi, table_5_8_L, ksi)); } if (typeFound == TypeFound.Круглый) { return(LinearInterpolation(table_5_8_ksi, table_5_8_C, ksi)); } return(null); }