沥青针入度指数如何计算?
发布网友
发布时间:2022-05-14 15:44
我来回答
共1个回答
热心网友
时间:2023-10-22 23:16
自己写的C#的方法 能看懂不?看不懂再问我
public static double picalc(double t1, double t2, double t3, double p1, double p2, double p3)
{
double t, p;
t1 = t1 + 273.15; t2 = t2 + 273.15; t3 = t3 + 273.15;
p1 = Math.Log10(p1); p2 = Math.Log10(p2); p3 = Math.Log10(p3);
t = (t1 + t3 + t2) / 3;
p = (p1 + p2 + p3) / 3;
double lxy, lxx;
lxy = (p1 - p) * (t1 - t) + (p2 - p) * (t2 - t) + (p3 - p) * (t3 - t);
lxx = (t1 - t) * (t1 - t) + (t2 - t) * (t2 - t) + (t3 - t) * (t3 - t);
double b = lxy / lxx;
return (20 - 500 * b) / (1 + 50 * b);
}