2016-10-01ãã1ã¶æéã®è¨äºä¸è¦§
Problem 16: Power digit sum gmpã§è§£ããã Problem 17: Number letter counts ã©ã®æ°ã®ã¨ãã«ã©ãã ãã®æåæ°ãã©ãã«è¿½å ãããããèãã¦ã1000åã®ãã¯ãã«ã«ã¾ã¨ãã¦å ç®ãã¦ãã£ãã æå綴ããééãã¦ãã¦è§£ããªãã£ããæ¥ããããã Problem 18: â¦
Problem 11: Largest product in a grid åé¡èªä½ã¯é£ãããªããè¨ç®æéãããããªããæååã®èªã¿è¾¼ã¿ã¨æ·»åæä½ã®ç·´ç¿ã Problem 12: Highly divisible triangular number gmpã使ã£ã¦ç¡çç¢çãã£ã¦ã2ã3ç§ã ããoverviewã«ããå¹ççãªæ¹æ³ãæ¸ãã¦ãâ¦
ã´ã³ãã«ãæ²ç·ã§ã¯ç¸å¯¾æé·é度ã¨ééã®é¢ä¿ã¯ã©ããªã£ã¦ãã®ãã¨æã£ã¦é©å½ã«å帰ãã¦ã¿ãããè¯ãå½ã¦ã¯ã¾ã£ãã®ã§ããã®ä»®å®(ç¸å¯¾æé·é度ã¯ééã®å¯¾æ°ã«æ¯ä¾ãã¦æ¸å°ãã)ã®ãã¨ã«å¾®åæ¹ç¨å¼ã解ãã¦ã¿ãã¨ãã¡ããã¨ã´ã³ãã«ãé¢æ°ãåºã¦æ¥ããããã§â¦
æ¤ç©ã®ééã«ä¸éããã£ãã¨ãã¦ãç¸å¯¾æé·é度ãä¸éã¨ä»ã®ééã®å·®ã«æ¯ä¾ããã¨ãã¦ã¿ããã ããã¯é©å½ãªå®æ°ããã£ã¦ãã¦æ¸ãæããã¨ãè¦ããã«ç¸å¯¾æé·é度ãééã®ä¸æ¬¡å¼ã§è¡¨ç¾ã§ããã¨ãããã¨ã«ãªãã ãããç¸å¯¾æé·é度ã®å®ç¾©ã«ä»£å ¥ããã ããã¦â¦
ååã¯RGRãééã®å¯¾æ°ã®å¤åé度ã¨ãã¦æ±ããããããããRGRã®å®ç¾©ã¯ã§ãã£ãã®ã§ãè¤æ°ã®ãã¼ã¿ãã¤ã³ããããã°ä½ããã®æ¹æ³ã§å¹³æ»åãã¦å¾®åããã°ããã精度è¯ãRGRãæ¨å®ã§ããã ãããä¾ãã°åå¾2ç¹ãå«ãã3ç¹ãã©ã°ã©ã³ã¸ã¥è£éãã¦å¾ãäºæ¬¡é¢æ°ãâ¦
æ¤ç©ã®ééã«ã¤ãã¦ãç¬éçãªæé·é度ã¯æ¤ç©ã®ééã«æ¯ä¾ããã¨ä»®å®ããããã®ã¨ããç¸å¯¾æé·é度(RGR: Relative Growth Rate)ã¨å¼ã¶ããããå¤åããªãã®ã§ããã°ãæ¤ç©ã¯ææ°é¢æ°çã«å¢å¤§ãç¶ãã¦ãã¾ããå°çã¯ç¨ãªããã¦æ» ã¶ã ãããããããæ¤ç©ã¯ç¡éâ¦
ããããããåã¯ä½ããããã£ããã ãã¿ãããªãã¡ã¤ã«ãå¼ãç¶ããããã¨ããã¾ãããï¼ãªãï¼ããã¤ã¯ããã£ããªï¼ï¼ï¼ï¼ï¼ ã¯ã½ã¿ãããªãã¼ã¿ãæ´å½¢ãã æ®éãã¼ã¿ã¯ããå ¥åããã ãããããã§ãªãã¦ã¯ä½ãå§ããããªãã ã ãä¸å¹¸ãªãã¨ã«ç¾å®ã¯ããâ¦
ä¹ ãã¶ãã«Project Eulerããã£ã¦ã¿ããã¨æã£ããããã£ãããªã®ã§é²æããªã»ãããã¦æåããã«ããã ã¨ãããã10åãã£ã¦ã¿ãã大åè³ãã¤ãããªã£ã¦ãæãã£ãã®ã§ã¡ããã¨ç¶ç¶ãã¦ãã±é²æ¢ã«åªãããã 解çã³ã¼ãã¯githubã§ç®¡çãããã¨ã«ãã¦ãããâ¦
p.254ã®å³11.7ãstanã使ã£ã¦åç¾ãããã£ããstanã³ã¼ãã¯ãããªæãã data { int<lower=1> N; // æ¬ æ¸¬å¤ãå«ããã¼ã¿æ° int<lower=1> N_obs; // æ¬ æ¸¬å¤ä»¥å¤ã®ãã¼ã¿ã®æ° int<lower=1, upper=N> Idx_obs[N_obs]; // æ¬ æ¸¬å¤ä»¥å¤ã®ãã¼ã¿ã®ã¤ã³ããã¯ã¹ int<lower=0> Y_obs[N_obs]; // æ¬ æ¸¬å¤ãé¤ãããã¼</lower=0></lower=1,></lower=1></lower=1>â¦