public class PLK {
public static void main(String[] args) {
int c = 299792458;//光速(米/秒)
double k = 1.38E-23;//玻尔兹曼常数(j/k)
double h = 6.63E-34;//普朗克常数(js)
double W=0;
double A = 2 * Math.PI * h * Math.pow(c, 2);
System.out.println(W);
for (int T = 500; T <= 900; T += 100) {//温度K的范围
int e = 0;
for (double b = 1E-6; b <= 1E-5; b += 5E-7) {
double B = Math.pow(b, 5);
double C = Math.pow(Math.E, (h * c) / (b * k * T)) - 1;
double M = A / (B * C);
e++;
System.out.println(T + " " + (float)(b*1E6) + " " + M);
}
}
}
}
public class PLK { public static void main(String[] args) { int c = 299792458;//光速(米/秒) double k = 1.38E-23;//玻尔兹曼常数(j/k) double h = 6.63E-34;//普朗克常数(js) double W=0; double A = 2 * Math.PI * h * Math.pow(c, 2);.