facebook twitter hatena line google mixi email
★お気に入り追加


■ このスレッドは過去ログ倉庫に格納されています

  • 59
  •  
  • 2018/03/16(金) 22:18:14.46
>>58. への補足。

■その場合に0.868秒後くらいに気化することは、下図のC言語プログラムを実行してみればわかります。

#include <stdio.h>

#define RatioUpStartTime 10000

int main(int argc, char* argv[])
{
  double vNum[0x400], ratio, num, cumulat, temperat;
  int  t, ratio100000, passedTime;

  for (t = 0; t < 0x400; t++) vNum[t] = 0;
  ratio100000 = 95000;
  cumulat = 0;
  t = 0;
  while (1){
    ratio = (double)ratio100000 / 100000;
    num = vNum[(t - 1) & 0x3FF] * ratio * 0.99 + vNum[(t - 1000) & 0x3FF] * ratio * 0.01;
    if ((t % 10) == 0) num += 1;
    vNum[t & 0x3FF] = num;
    cumulat += num;
    temperat = 10 + 0.000000000032 * cumulat / (234 * 170 + 285 * 130);
    if (t == RatioUpStartTime) printf("%8e\n\n", (vNum[t & 0x3FF] - vNum[(t - 10) & 0x3FF]));
    if (temperat >= 11 && (t % 20) == 0){
      passedTime = t - RatioUpStartTime;
      printf("%.3f, %.4f, %19.0f, %21.0f, %7.1f\n", ((double)passedTime/10000), ratio, num, cumulat, temperat);
      if (temperat >= 50000) break;
    }
    if (t >= RatioUpStartTime) ratio100000++;
    t++;
  }

  return 0;
}

ここまで見た

★お気に入り追加

このページを共有する
facebook twitter hatena line google mixi email
おすすめワード