{"id":9766,"date":"2011-07-11T02:22:00","date_gmt":"2011-07-11T02:22:00","guid":{"rendered":"http:\/\/melotopia.net\/b\/?p=9766"},"modified":"2011-07-11T02:22:00","modified_gmt":"2011-07-11T02:22:00","slug":"%eb%82%98%eb%a5%bc-%eb%8b%b9%ed%99%a9%ec%bc%80-%ed%95%98%eb%8b%a4%eb%8b%88","status":"publish","type":"post","link":"http:\/\/melotopia.net\/b\/?p=9766","title":{"rendered":"\ub098\ub97c \ub2f9\ud669\ucf00 \ud558\ub2e4\ub2c8"},"content":{"rendered":"<div class=\"desc\">\n        \uc774\uac74 \ud30c\uc774\uc36c\uc774\ub77c\uc11c \ubc1c\uc0dd\ud55c \ubb38\uc81c\ub294 \uc544\ub2c8\uaca0\uc9c0\ub9cc \uc5b4\uca0c\ub4e0 \ucf54\ub4dc\ub97c \ud30c\uc774\uc36c\uc73c\ub85c \ud558\ub2e4\uac00 \ub9cc\ub09c \ubb38\uc81c\ub2e4.<\/p>\n<p>        \uc9c0\uae08 \ub9cc\ub4e0 \ud504\ub85c\uadf8\ub7a8\uc740 f(x)\uc758 \ud3c9\uade0\uac12\uc744 \uad6c\ud574\uc57c \ud55c\ub2e4. \uac04\ub2e8\ud558\uac8c x*f(x)\ub97c x\uc5d0 \ub300\ud574 \ub2e4 \ub354\ud558\uace0, f(x)\ub97c x\uc5d0 \ub300\ud574 \ub2e4 \ub354\ud55c \ud6c4 \ub458\uc744 \ub098\ub220\uc8fc\uba74 \ub41c\ub2e4.<\/p>\n<div class=\"txc-textbox\" style=\"border-style: solid; border-width: 1px; border-color: rgb(254, 254, 184); background-color: rgb(254, 254, 184); padding: 10px;\">\n         for m in range(wbegin,wend):<br \/>\n         <br \/>\n         for n in range(hbegin, hend):<br \/>\n         <br \/>\n         x=x+m*array[n][m]<br \/>\n         <br \/>\n         y=y+n*array[n][m]<br \/>\n         <br \/>\n         total=total+array[n][m]<br \/>\n         <br \/>\n         x = x\/total<br \/>\n         <br \/>\n         y = y\/total<br \/>\n         <br \/>\n         return x, y<br \/>\n         \n<\/div>\n<p>\n        \ubb38\uc81c\ub294 x*f(x)\ub97c \ub2e4 \ub354\ud588\ub354\ub2c8 overflow\uac00 \ub098 \ubc84\ub9b0\ub2e4\ub294 \uac83. f(x)\uc911\uc5d0 \uc74c\uc218\uac00 \ud558\ub098\ub3c4 \uc5c6\uace0 x\ub3c4 \uc74c\uc218\uac00 \ud558\ub098\ub3c4<br \/>\n\uc5c6\ub294\ub370 \uc74c\uc218\uac00 \ub098\uc624\uae38\ub798 \uc65c\uadf8\ub7f0\uac00 \ud588\ub354\ub2c8 x*f(x)\ub97c \ub2e4 \ub354\ud558\ub2e4 \ubcf4\ub2c8 \uc815\uc218\uc758 \ud55c\uacc4\ub97c \ub118\uc5b4\uac00\uc11c \uc74c\uc218\ubd80\ud130 \ub2e4\uc2dc \uc2dc\uc791\ud55c \uac83 \uac19\ub2e4.<br \/>\n(\uc591\uc218\ub97c \uacc4\uc18d \ub354\ud588\ub294\ub370 \uc74c\uc218\uac00 \ub098\uc624\ub294 \uacbd\uc6b0\ub294 \uc218\ud559\uc801\uc73c\ub85c\ub294 \ubd88\uac00\ub2a5\ud558\ub2c8\uae4c.)<\/p>\n<p>        \uadf8\ub798\uc11c \uc774 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 f(0)\ubd80\ud130 \uc2dc\uc791\ud574\uc11c \uc7ac\uadc0\uc801\uc73c\ub85c \uacc4\uc0b0\ud558\uc5ec f(x)\uae4c\uc9c0\uc758 \ud3c9\uade0\uc744 \uc54c \ub54c f(x+1)\uae4c\uc9c0\uc758 \ud3c9\uade0\uc744 \uacc4\uc0b0\ud558\ub294 \ubc29\ubc95\uc73c\ub85c, \uc810\ud654\uc2dd\uc73c\ub85c \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub824\uace0 \ud588\ub2e4. \uc774\ub7ec\uba74 \uacc4\uc18d\ud574\uc11c \ub098\ub220\uc8fc\uae30 \ub54c\ubb38\uc5d0 int\uc758 \ucd5c\ub300\uac12\uc744 \ub118\uc5b4\uac00\uc9c0\ub294 \uc54a\uc744 \uac70\ub77c\uace0 \uc0dd\uac01\ud588\ub2e4. \uadf8\ub7ec\ub098&#8230; \uadf8\uac83\uc740 \uc21c\uc9c4\ud55c \uc0dd\uac01\uc774\uc5c8\ub2e4.<br \/>\n        <br \/>\n        \uc774\ubc88\uc5d4 f(0)=0\uc5d0\uc11c \uc2dc\uc791\ud558\ub294 \uacbd\uc6b0\uac00 \ubb38\uc81c\uac00 \ub41c\ub2e4. \ucd08\ud56d\uc774 0\uc774\ub77c 0\uc73c\ub85c \ub098\ub204\ub294 \uc624\ub958 \ubc1c\uc0dd.<br \/>\n        <\/p>\n<div class=\"txc-textbox\" style=\"border-style: solid; border-width: 1px; border-color: rgb(231, 253, 181); background-color: rgb(231, 253, 181); padding: 10px;\">\n         for m in range(wbegin,wend):<br \/>\n         <br \/>\n         for n in range(hbegin, hend):<br \/>\n         <br \/>\n         x=(x*total+m*array[n][m])\/(total+array[n][m])<br \/>\n         <br \/>\n         y=(y*total+n*array[n][m])\/(total+array[n][m])<br \/>\n         <br \/>\n         total=total+array[n][m]<br \/>\n         <br \/>\n         return x, y<br \/>\n         \n<\/div>\n<p>\n        \uc544&#8230; \ubb50 \uc774\ub798 -_-;<\/p>\n<p>        \uc544\ubb34\ud2bc, \uadf8\ub798\uc11c total = 1\ub85c \uc92c\ub354\ub2c8 \uacc4\uc0b0\uc740 \ub418\ub294\ub370 \uc624\ucc28\uac00 \ucee4\uc9c4\ub2e4. total = 0.000000000000000001\ub85c \uc8fc\ub294 \ubb34\ub9ac\uc218\ub97c \ub46c\uc57c \ud558\ub098&#8230;<\/p>\n<div style=\"width:100%;margin-top:30px;clear:both;height:30px\">\n<div style=\"width:31px;float:left;\">\n<a href=\"\/toolbar\/popup\/abuseReport\/?entryId=2597\" onclick=\"window.open(this.href, 'tistoryThisBlogPopup', 'width=550, height=510, toolbar=no, menubar=no, status=no, scrollbars=no'); return false;\"><br \/>\n<img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\uc2e0\uace0\" src=\"https:\/\/i0.wp.com\/t1.daumcdn.net\/tistory_admin\/static\/ico\/ico_spam_report.png\" style=\"border:0\"\/><br \/>\n<\/a>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\uc774\uac74 \ud30c\uc774\uc36c\uc774\ub77c\uc11c \ubc1c\uc0dd\ud55c \ubb38\uc81c\ub294 \uc544\ub2c8\uaca0\uc9c0\ub9cc \uc5b4\uca0c\ub4e0 \ucf54\ub4dc\ub97c \ud30c\uc774\uc36c\uc73c\ub85c \ud558\ub2e4\uac00 \ub9cc\ub09c \ubb38\uc81c\ub2e4. \uc9c0\uae08 \ub9cc\ub4e0 \ud504\ub85c\uadf8\ub7a8\uc740 f(x)\uc758 \ud3c9\uade0\uac12\uc744 \uad6c\ud574\uc57c \ud55c\ub2e4. \uac04\ub2e8\ud558\uac8c x*f(x)\ub97c x\uc5d0 \ub300\ud574 \ub2e4 \ub354\ud558\uace0, f(x)\ub97c x\uc5d0 \ub300\ud574 \ub2e4 \ub354\ud55c \ud6c4 \ub458\uc744 \ub098\ub220\uc8fc\uba74 \ub41c\ub2e4. for m in range(wbegin,wend): for n in range(hbegin, hend): x=x+m*array[n][m] y=y+n*array[n][m] total=total+array[n][m] x = x\/total y = y\/total return x, y \ubb38\uc81c\ub294 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[12],"tags":[],"class_list":["post-9766","post","type-post","status-publish","format-standard","hentry","category-12"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8o6gA-2xw","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts\/9766","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9766"}],"version-history":[{"count":0,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts\/9766\/revisions"}],"wp:attachment":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9766"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}