2010-02-01ãã1ã¶æéã®è¨äºä¸è¦§
IEEEä¾å¤ã®æ°ã«å¯¾ããINT()ã®å®ç¾©ããããããã¾ãããæç®çã§è¦ãè¨æ¶ãããã¾ãããå¾ã§ISOã®è¦æ ¼ã調ã¹ã¦ã¿ããã§ãããé¢åãããã¦åå«ã ï½ INTEGERã®Out of rangeã¯ãè² ã®çµ¶å¯¾å¤æ大æ°ã«ãªã£ã¦ããããã§ãããIntelã®ç¬èªå®è£ ãªã®ã§ãããããISOã®â¦
Win32ã§èµ°ãããã¨ã4å²ããã¹ãã¼ãã¢ãããã¾ããQuick sortã®å ´åã¯x64ã¨Win32ã§éãã¯å¤ãããªãã®ã§ããã»ã» â å®è¡çµæ Win32ã§ã¯10**9åã®ãã¼ã¿ã確ä¿ã§ãã¾ããã§ããã x64ã®å ´åã®çµæ â ã½ã¼ã¹ããã°ã©ã bubble sortã®ä»£ããã«insertion sortã使â¦
ãã®è«æã«ããã¨ãKnuthã®gapå¼ãããæ§è½ã®è¯ããã®ãããã¤ãææ¡ããã¦ããããã§ãããã®ä¸ã®Tokudaã®å¼ã使ããã¨ã«ãã¾ãã â å®è¡çµæ 確ãã«Knuthã®ãã®ããè¨ç®éãå°ãªããªã£ã¦ãã¦ãQuick sortã¨ä¼¼ããããªè¦ç´ æ°ä¾åæ§(O(NlogN))ãè¦ãã¦ãã¾ãâ¦
è¦ç´ æ°10**8ç¨åº¦ã§ã¯Shell sortãå¥éãã¦Quick sortã¨è¨ç®æéãå¤ããã¾ãããããããä»ã®ããã°ã©ã ã§ã¯Quick sortã¯ä½è¨ãªã¡ã¢ãªã¼ãé£ãããã¦ãã以ä¸ã®è¦ç´ æ°ãè¨ç®ã§ãã¾ãããããã§ã¯Quick sortã®å°æå æ¹è¯ãè¡ãã¾ããå æ¥ãè¦ç´ æ°ãå°ãªããªã£â¦
åçã«è¨æ¶é åã確ä¿ã§ããªãã£ãFORTRAN77æ代ã«éå®ãã¦ããShell Sortã®ããã°ã©ã ãæ¸ãã¦ã¿ã¾ãããã®ã£ããã®ã¨ãæ¹ã¨ãã¦ãKnuthã®æ°å[tex:\{g_{n+1}=3*g_n+1|2*g_ha102549ï¼ãããããå®è¡æéããã¼ã¿æ°ã®é¢æ°ã¨ãã¦ã¿ãã¨å¤§ä½ï¼¯(N^2)ã«æ¯ä¾ãã¦â¦
Quick sortã¯ãè¦ç´ æ°ãå°ãªãã¨ãã¯ããã£ã¦é ãã®ã§ãè¦ç´ æ°ãæ¸ã£ãã¨ããã§Bubble sortã®ãããªç´ æ´ãªæ¹æ³ã«åãæ¿ããã»ããå¹çããããªãã¾ããããã§ã¯Bubble sortãã®ãã®ã§ã¯ãªãã®ã§ãã(ããã¦è¨ãã°æ²æ®¿sort?)ãåçãªO(N^2)ã®SORTãè¦ç´ æ°ï¼ï¼â¦
Computer History Museumã®ãµã¤ãã«ã1958å¹´ã«æ¸ãããFORTRAN IIã¨ãã¼ããããã°ã©ã ã¨å®è¡çµæãããã¾ããï¼ï¼ï¼ã®Hilbertè¡åã®éè¡åãæ±ãããã®ã§ãï¼Matrix Inversion Order 5ï¼ãå æ¥ã¯ãIntel Visual Fortran Ver.11.1ã§å®è¡ãã¦ã¿ã¾ããããä»åâ¦
ALLOCATABLEã§ããã¨ãè¨æ¶é åã®éæ¾ãèªåã§ãã£ã¦ãããã®ã§ãã楽ã ã¨æãã¾ããå¿ è¦ãªã³ã³ãã¤ã©ã»ãªãã·ã§ã³ã¯ /assume:realloc_lhs /heap-arrays100000 ã§ããIntelæ²ç¤ºæ¿ã«ããã¨ãæ¥é±æ©ã ã«ãInteï½Fortranã®æ°ããupdateãåºãããã§ãã â ã½ã¼ã¹â¦
Quick Sortããã°ã©ã ããã¤ã³ã¿ãè¿ãå½¢å¼ã«æ¸ãç´ãã¦ã¿ã¾ãããæåã§å²ä»ãã¦ããã®ã§ãéæ¾å¿ãã«æ³¨æãå¿ è¦ã§ããå¤å大ä¸å¤«ã ã¨æãã¾ããããã¼ãé åã«åçé åãå²ãä»ãããã¨ã§ã大ããªé åã«ãé©ç¨ã§ãã¾ãã â å®è¡çµæ è¦ç´ ï¼åãã10**8ï¼ï¼â¦
Riemannã«ããç´ æ°ã®åæ°ã®å¼ã ããã§Li(x)ã¯Gaussã«ããç´ æ°ã®åæ°ã®è¿ä¼¼å¼ã§ããï¼ã§ãç©åã®ä¸éãï¼ãªã®ãï¼ãªã®ãããåãããï½ ãã è¨ç®çµæããã¯ãã©ã¡ãã§ã大差ç¡ãï¼ã¾ãμ(k)ã¯ã¡ãã¦ã¹é¢æ°ã§ãã å®è¡çµæ ã½ã¼ã¹ããã°ã©ã ãã¾ãã¾ããã«èâ¦
ãExtrapolateãããã¨è¨ãããã¨ããã¥ã¼ã´ã¼ã»ã¬ã¼ã³ãºããã¯ãæãåºãã¦ãã¾ãé§ç®å·ãè¾¼ã¿ãä»æ¥ãæ¨æ©ã«ç¶ããç©åã®Richardsonè£å¤ï¼ãããã¯å¤æ¿ï¼ãã°ãã¨ããã§SFã¨ããã°æ ç»ã涼宮ãã«ãã®æ¶å¤±ããè¦ã¦ãã¾ãããããããåå ´ã空ãã¦ãé ããªã¨â¦
Nã¾ã§ã®ç´ æ°ã®åæ°ã®è©ä¾¡å¼ã¨ãã¦ãã«ã¸ã£ã³ãã«ã®ãGaussã®ãªã©ãããã¾ããããã§ã¯ã¬ã¦ã¹ã®Li(x)é¢æ°ãæ°å¤ç©åã§æ±ãã¦ã¿ã¾ããå®ç¾©å¼ã®ã¾ã¾ã§ã¯ç©åç¯å²ãåºãããã®ã§ãã®å¤æ°å¤æãè¡ããããã«é¨åç©åããã¦ã¿ã¾ãã ããããã¹ããªã®ãåããã¾ãâ¦
[Fortran66] 1958å¹´ã®ããã°ã©ã ãã»ã¨ãã©ç¡ä¿®æ£ã§åã件 è¨ç®æ©æ´å²åç©é¤¨ã®ãµã¤ãã«Fortrané¢é£ã®å¤ææ¸ãç½®ããã¦ããã®ã§ããããã®ä¸ã«1958å¹´ã«FORTRANã§æ¸ããããï¼ï¼ï¼ã®Hilbertè¡åã®éè¡åãæãåºãæ³ã§æ±ããããã°ã©ã ãããã¾ããããã®ããâ¦
ä¾å¤å¦çã«ã¯ä¾¿å©ãªãã§ãããæ代ãåå¨ã許ããªãï½ å®è¡çµæ ã½ã¼ã¹ã³ã¼ã MODULE m_mod IMPLICIT NONE CONTAINS SUBROUTINE alt(i, *, *) INTEGER, INTENT(IN) :: i SELECT CASE(i) CASE(1) RETURN 1 CASE(2) RETURN 2 CASE DEFAULT RETURN END SELECT Eâ¦
確ãã«æ½è±¡åº¦ã®é«ãæ°ããè¨èªä½¿ç¨ã使ãã¨ã½ã¼ã¹ã³ã¼ãã¯ç°¡æ½ã«ãªãããã©ãè¦ããªãã¨ããã§åçã«ã¡ã¢ãªã¼ã使ç¨ããã®ã§ãã¹ã¿ãã¯ãããµããããæé©åãå¹ããªãã£ããã§ãDO LOOPã®ãããããã«ã¯åã³ã¾ããã åºçºãã¯ãã«ãæ¼ç®åã§ä½æ®µãå¦çãã¦â¦
æ¦å 義éã®ãæ¯é£ææ³å²ãï¼ãä¸å½ææ³å²ãã¯é常ã«ææ°ã§ãã¤é¢ç½ãã§ããããæç³»æ¸ç±ã«ã¿ããããããªãäºå®ã¨æè¦ã¨æ¨æ¸¬ã¨æãå ¥ããããã¿ããã£ã¡ããã«ãªã£ã¦ãããã®ã¨ã¯éã£ã¦ãäºå®ã¨æ¨è«ã¨æ ¹æ ã¨æè¦ããã£ã¡ãåããã¦ç°¡æ½ã«è¨è¿°ããã¦ãã¦ãèªâ¦
ãªã¤ã©ã¼ã®ç´ æ°çæå¼ã¨ãã®é¡ä¼¼ã«åºã¥ãã¦ç´ æ°ãçæãããããæ¬å½ã«ç´ æ°ããã§ãã¯ãã¾ããç´ æ°å¤å®ã¯ãç´ æ°ãå°ããã®ã§ç´ æ´ã«ä½ããè¦ã¦ãããã¨ã«ãã¾ãããªã¤ã©ã¼ã®ç´ æ°çæå¼ãåãã¦ç¥ã£ãæãéåã¨å¦ãªãã®ããããã®ã ã¨æãã¾ãããããã®ä»²éâ¦
EXP(Ïâ163)ãæ´æ°ã«ã¨ã¦ãè¿ããªãã¨ããäºã«ã¤ãã¦ãã¡ãã£ã¨ã ã詳ããæ¬ã«è¼ã£ã¦ããã®ã§è©¦ãè¨ç®ã å®è¡çµæ ã½ã¼ã¹ã³ã¼ã PROGRAM test IMPLICIT NONE INTEGER, PARAMETER :: kq = SELECTED_REAL_KIND(25) REAL(kq), PARAMETER :: pi = 4.0_kq * ATAN(1â¦
ã¤ãã§ã«åçã«ãã©ã¼ãããçæãããã INTRINSIC :: RESHAPE ãå ¥ã£ãã®ã¯ããã¡ã¤ã«åã RESHAPE.F90 ã«ãããã object åããã¶ã£ã¦ãã¾ãå¿ è¦ã«ãªãã¾ãããæ¬æ¥çã«ã¯ä¸è¦ãæ°ç fortran66.hatenablog.com åºåçµæ ã½ã¼ã¹ã³ã¼ã PROGRAM test INTEGâ¦
Intelã®ã³ã³ãã¤ã©ã§ã®ææ³å³å¯ãã§ãã¯ãªãã·ã§ã³ã§å¼ã£ãããã®ã§èª¿ã¹ãã¨ããããFortran95/2003 Explainedã6-11(p.116)ã«ã確ãã«ãã®ããã«æ¸ãã¦ããã¾ãããããããæ ¹æ ã¯ããåããã¾ããã ãããæºããããã«å°ãæ¸ãæãã¦ã¿ã¾ããããFortran â¦