2010/2/4(Thu) 00:28:16|NO.30378
¡ÖϢΩÊýÄø¼°¡×¥°¥°¤ì¤Ð¤¤¤¯¤é¤Ç¤â²òÀ⤬¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢»ä¤¬¤³¤³¤ÇÃúÇ«¤Ë¤ï¤«¤ê¤ä¤¹¤¯²òÀ⤹¤ë¤è¤ê¤â¤½¤Á¤é¤ò¸«¤¿¤Û¤¦¤¬¤ï¤«¤ê¤ä¤¹¤¤¤Ç¤·¤ç¤¦¡£
¤Ê¤Î¤Ç²ò¤¯¼ê½ç¤Î¤ßµºÜ¤·¤Þ¤¹¡£
> X = Input("Æó¤ÄÌܤμ°¤ÎX¤Î·¸¿ô¤Ï¡©")
> Y = Input("Æó¤ÄÌܤμ°¤ÎY¤Î·¸¿ô¤Ï¡©")
> Z = Input("Æó¤ÄÌܤμ°¤ÎÄê¿ô¤Ï¡©")
¤È¤¯¤È¤¤Ëº®Íð¤ò¾·¤¯¤Î¤Ç¡¢
X¢ªD
Y¢ªE
Z¢ªF
¤È¤·¤Þ¤·¤¿¡£¤´Î»¾µ¤¯¤À¤µ¤¤¡£
¥¹¥¯¥ê¥×¥È²½¤¹¤ëºÝ¤â¡¢Æ±ÍͤËXYZ¤ò»È¤ï¤Ê¤¤¤Û¤¦¤¬º®Í𤬾¯¤Ê¤¯¤Æ¤¤¤¤¤È»×¤¤¤Þ¤¹¡£
> ("Æó¤Ä¤Î¼°¤òÁ´Éôº¸Êդ˰ܹԤ·¤ÆÀ°Íý¤·¤Ê¤µ¤¤¡ÊaX+bY+c=0¡Ë¤Î·Á")
°Ê²¼¤Î£²¤Ä¤Î¼°¤¬¤¢¤ë¤â¤Î¤È¤·¤Þ¤¹¡£
¡¦AX + BY + C = 0¡¡¡¡¡Ä¡
¡¦DX + EY + F = 0¡¡¡¡¡Ä¢
¡¡¢¢¼°¤«¤é̤ÃοôX,Y¤òµá¤á¤ë¡£¾°A¡ÁF¤Ï´ûÃΤÎÃͤǤ¢¤ë¡£
¢¼°¤è¤ê
DX = -EY -F
X = (-EY-F)/D
¤³¤ì¤ò¡¤ËÂåÆþ¤¹¤ë¡£
A(-EY-F)/D + BY + C = 0
-AEY/D -AF/D + BY + C = 0
(-AE/D + B) / Y = AF/D - C
Y = (AF/D - C) / (-AE/D + B)
Y = (AF/D - C) / (B - AE/D)¡¡¡¡¡Ä£
¤³¤ì¤ÇY¤ÎÃͤ¬µá¤á¤é¤ì¤ë¡£
¡¼°¤òÊÑ·Á¤¹¤ë¡£
AX + BY + C = 0
AX = -BY - C
X = (-BY - C) / A
X = -BY/A - C/A
¤³¤ì¤Ë£¼°¤òÂåÆþ¤¹¤ë¤ÈX¤¬µá¤á¤é¤ì¤ë¡£
°Ê¾å¡£
ÉáÄ̤μê½ç¡£ºÇ¸å¤ÏÄ󼨤µ¤ì¤¿¥µ¥ó¥×¥ë¤Ë¼°¤Î·Á¤ò¹ç¤ï¤»¤Æ¤ª¤¤Þ¤·¤¿¡£
¤È¤³¤³¤Þ¤Ç¤ä¤Ã¤Æ¤ß¤Æ²æ¤ËÊ֤俤ΤǤ¹¤¬¡¢¤É¤¦¸«¤Æ¤âHSP´ØÏ¢¤Î¼ÁÌä¤Ç¤Ï¤Ê¤¤¤Ç¤Ï¤Ê¤¤¤Ç¤¹¤«¡£
¤³¤³¤Î·Ç¼¨ÈĤα¿Íѥ롼¥ë¤Ç¤Ï¡¢HSP¤Ë´Ø·¸¤·¤Ê¤¤ÏÃÂê¤Ï¼è¤ê°·¤ï¤Ê¤¤¤³¤È¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¤³¤ó¤Ê¥ì¥¹¤¹¤ë»ä¤â¿Í¤Î¤³¤È¤¤¤¨¤Ê¤¤¤Ç¤¹¤Í¡Ä¡£
¤È¤¤¤¦¤³¤È¤Ç¡¢¤³¤ì°Ê¾å¤Î¿ô³ØŪ¤Ê²òÀâ¿ô³Ø·Ï²òÀ⥵¥¤¥È¤ò¤´Í÷¤¯¤À¤µ¤¤¡£
¥¹¥¯¥ê¥×¥È¤Ë´Ø¤¹¤ë¼ÁÌä¤Ï¡¢°ú¤Â³¤¤³¤Î¥¹¥ì¥Ã¥É¤ò¤´ÍøÍѤ¯¤À¤µ¤¤¡£
| |