3940649673945355 * 3 の計算が合いません。
Ältere Kommentare anzeigen
数列の一般項を、ループ処理した漸化式と比べて確かめていたのですが、どうもmatlabの計算が上手くいきません。
Num = 3940649673945355 * 3 % -> 1.182194902183606e+16
3940649673945355 * 3 = 11821949021836065 のはずですよね。しかし1の位を見るために1e16を引くと...
Num - 1e16 % -> 1.821949021836064e+15
となります。どうして 1.821949021836065e+15 ではなく1.821949021836064e+15 となるのでしょうか。解決策を教えてください。
できれば原因も教えてくださるとうれしいです。
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!