ç¡é大ï¼infï¼ããã§ãã¯ããæ¹æ³ inf = float("inf") if(val == inf): #valãç¡é大ã ã£ãã¨ãã®å¦çãæ¸ã float("inf")ã§ç¡é大ãä½ããã¨ãåºæ¥ããç¡é大ãã§ãã¯ã¯é常ã¢ããªã§ã¯ãªããªããããªãããç¥ããªãã Nanããã§ãã¯ããæ¹æ³ if( val != val ): #valãNanã ã£ãã¨ãã®å¦çãæ¸ã Pythonã§ã¯Nanã¨Nanãæ¯è¼ããã¨Falseãããã£ã¦ããããããªããPython2.6以éã§ã¯math.isnal(valï¼ã§èª¿ã¹ããã¨ãåºæ¥ãã ãã¡ãã¯ã¨ã¦ããã使ãããã©ãåãã¦ãã®ã³ã¼ããè¦ãããä½ãã£ã¦ãã ã³ã¬ï¼ã¨ãªã£ã¦ãã¾ããããªã®ã§ã# Nan Checkãã¨ã§ãã³ã¡ã³ããæ·»ãã¦ãããã¨ã«ãããã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}