ï¼£è¨èªã使ã£ã¦ããã¨ï¼ï¼£è¨èªã®åå¿è ã§ãªãã¦ãï¼é¥ãæãç½ ãããï¼ãã®ä¸ã¤ãæ´æ°å¤ã®å²ç®ã§ããï¼ æ¬¡ã®ããã°ã©ã ã¯ã 1000 ã® 50% ã¯ãããï¼ãã®çããåºåããããã®ãã®ã§ããï¼ main() { printf("%d\n", 50 / 100 * 1000); } æ£è§£ã¯ 500 ã®ã¯ãã§ãããï¼ãã®ããã°ã©ã 㯠0 ã¨åºåããï¼ãã®çç±ã¯ï¼ 50 / 100 ã®å²ç®ã«ããï¼ ï¼£è¨èªã§ã¯ï¼æ´æ°å士ã®å²ç®ã®çµæã¯ï¼å²ç®ã®åã¨ãªãï¼ããªãã¡ï¼å°æ°ç¹ä»¥ä¸ã¯åãæ¨ã¦ãããï¼ãããã£ã¦ï¼ 50 / 100 㯠0 ã¨ãªãã®ã§ããï¼ããã« 1000 ãæãã¦ãï¼çµæ㯠0 ã®ã¾ã¾ã§ããï¼ æ°å¤æ¼ç®ã¯å·¦ããè¡ãããã®ã§ï¼ä¸ã®ãããªè¨ç®ã®å ´åã«ã¯ï¼å²ç®ãæå¾ã«æã£ã¦æ¥ã¦ï¼ printf("%d\n", 1000 * 50 / 100); ã¨ããã°ï¼æå¾ ããçµæãå¾ããã¨ãã§ããï¼ ã¾ãï¼å²ç®ãã
æ°å¤è¨ç® ã¾ãï¼Mathematica ã«æ°ã®è¨ç®ãããã¦ã¿ã¾ãããï¼ã¾ãã¯è¶³ãç®ããï¼ In[1]:= 123456789+987654321 Out[1]= 1111111110 æãç®ã¯ï¼2ã¤ã®æ°ã空ç½ã§åºåã£ã¦ä¸¦ã¹ãã°OKã§ãï¼ In[2]:= 142857142857 7 Out[2]= 999999999999 ã§ã¯æ¬¡ã«ï¼100 ã®éä¹ãè¨ç®ãã¦ã¿ã¾ãããï¼ In[3]:= 100! Out[3]= 933262154439441526816992388562667004907159682643816214\ 6859296389521759999322991560894146397615651828625369\ 7920827223758251185210916864000000000000000000000000 æå¾ã®æ¡ã¾ã§æ£ãã(? ã ãã確èªãã¦ãã ãã :-) æ±
Mathematicaããã°ã©ãã³ã° 第ä¸é¨ Mathematicaã®ææ³ ã¯ããã« å ¨è¬çãªã㨠Mathematicaã®è¨ç®ç²¾åº¦ ãªã¹ãã«ã¤ã㦠主ãªå®æ° 主ãªç®è¡æ¼ç®å å®ç¾© é¢æ°ãå®ç¾©ãã(ãµãã«ã¼ãã³ã®ä½ãæ¹) éè¦ãªæ³¨æ ä¸åº¦è¨ç®ããå 容ã®ä¿æ æç¶ãåã®é¢æ° å±æå¤æ° è©ä¾¡ã®éã®åªå é ä½ å¤æè¦å æ¡ä»¶å¼ æ¯è¼æ¼ç®å æ¡ä»¶å¼ã®çµå ç¹°ãè¿ãæ§æ å復æå® æ¡ä»¶åå²æ§æ 第äºé¨ Mathematicaã®å¿ç¨ ä½å³æ³ æ¹ç¨å¼ã解ã æ¹ç¨å¼ã®çµæã®å©ç¨æ³ é£ç«æ¹ç¨å¼ å¾®åæ¹ç¨å¼ ãã¯ãã«ã¨è¡å ãã£ããã£ã³ã° ç·åãã£ããã£ã³ã° éç·åãã£ããã£ã³ã° ãã¡ã¤ã«å ¥åºå ãã¡ã¤ã«åºå ãã¡ã¤ã«å ¥å ã°ã©ãã£ã«ã«ãªå ¥åæ¹æ³ ããã±ã¼ã¸ã®å©ç¨æ³ æ¨æºããã±ã¼ã¸ ããã±ã¼ã¸ã®èªã¿è¾¼ã¿ ã³ã³ããã¹ã è¨ç®ã®é«éåã®ææ³ ãã£ã¨è©³ãã ã¯ããã« ããã§ã¯ãæ¹ç¨å¼ã解ãããã°ã©ãããããããã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}