討論串[問題] 關於fotran數值運算的誤差問題
共 5 篇文章
內容預覽:
program test. real(kind=8) a, b, c. a=0.100000000001*1D300. a= 0.100000000001D300. b=0.100000000000*1D300. b= 0.100000000000D300. c= a - b. write(*,*)
(還有72個字)
內容預覽:
Fortran. From Wikipedia, the free encyclopedia. Jump to: navigation, search. Fortran. The Fortran Automatic Coding System for the IBM 704 (October 15,
(還有1222個字)
內容預覽:
我不懂 fortran. 但可能有兩種原因只顯示 0.00000. 1.fortran 儲存 real 只用不到 8 bytes(應該不太可能?). 2.write要設定顯示科學記號表示法. ※ 引述《sjgau.bbs@ptt.cc (sjgau)》之銘言:. > #include "stdafx
(還有1156個字)
內容預覽:
#include "stdafx.h". #include <math.h>. int main(int argc, char* argv[]). {. double a, b, c;. printf("\nsizeof(c)= %d bytes\n", sizeof(c));. a=0.10000
(還有207個字)