{"id":7383,"date":"2006-12-29T16:50:00","date_gmt":"2006-12-29T16:50:00","guid":{"rendered":"http:\/\/melotopia.net\/b\/?p=7383"},"modified":"2006-12-29T16:50:00","modified_gmt":"2006-12-29T16:50:00","slug":"%ea%b5%ac%ec%a1%b0%ec%b2%b4","status":"publish","type":"post","link":"http:\/\/melotopia.net\/b\/?p=7383","title":{"rendered":"\uad6c\uc870\uccb4"},"content":{"rendered":"<div class=\"desc\">\n        \uad6c\uc870\uccb4\ub294 \ubb50\ub0d0&#8230;<\/p>\n<p>        \ubcc0\uc218 \uc5ec\ub7ec\uac1c\ub97c \ubb36\uc5b4\ub454 \uac83\uc744 \uc758\ubbf8\ud55c\ub2e4. \uc6d0\ub798, C\uc5d0\uc11c \uc4f8 \uc218 \uc788\ub294 \ubcc0\uc218 \ud615\ud0dc\ub294 \uc815\uc218, \uc2e4\uc218, \uae34 \uc2e4\uc218 \uc815\ub3c4\uc778\ub370, \uc6b0\ub9b0 \ubca1\ud130\ub3c4 \uc368\uc57c \ud558\uace0 \ubcf5\uc18c\uc218\ub3c4 \uc368\uc57c \ud55c\ub2e4. \uc774\ub7f0 \uacbd\uc6b0, \uc0c8\ub85c\uc6b4 \ud615\ud0dc\ub97c \uc9c0\uc815\ud574 \uc918\uc57c \ud55c\ub2e4. \uc0ac\uc6a9\ubc95\uc740 \uac04\ub2e8\ud558\uace0 \ubcf5\uc7a1\ud558\ub2e4.<br \/>\n        <\/p>\n<blockquote><p>\n<br \/>\n         struct \uad6c\uc870\uccb4<br \/>\n         <br \/>\n         {<br \/>\n         <br \/>\n         int x;<br \/>\n         <br \/>\n         int y;<br \/>\n         <br \/>\n         }<br \/>\n         \n<\/p><\/blockquote>\n<p>        \uc774\ub807\uac8c \ud574 \ub450\uba74 \uad6c\uc870\uccb4\uac00 \uc120\uc5b8\ub41c\ub2e4. \uadf8\ub9ac\uace0 \uad6c\uc870\uccb4\uc5d0 \uc788\ub294 \uac12\uc744 \ub2e4\ub978\ub370\uc11c \uac00\uc838\ub2e4\uac00 \uc368\uc57c \ud55c\ub2e4\uba74 \ud56d\uc0c1 \uadf8 \uc55e\uc5d0 struct\ub97c \ubd99\uc5ec\uc918\uc57c \ud55c\ub2e4. \uc548\uadf8\ub7ec\uba74 \uad6c\uc870\uccb4\uac00 \uad6c\uc870\uccb4\ub77c\ub294\uac78 \ubaa8\ub974\uae30 \ub54c\ubb38\uc774\ub2e4.<\/p>\n<p>        \uc2e4\uc81c\ub85c \uad6c\uc870\uccb4 \ud615\ud0dc\uc758 \ubcc0\uc218\ub97c \uc4f8 \ub54c\ub294 \uc704\uc640 \uac19\uc774 \uad6c\uc870\uccb4\ub97c \uc120\uc5b8\ud574\uc8fc\uace0, \ub2e4\uc74c\uacfc \uac19\uc774 \uc0ac\uc6a9\ud574\uc57c \ud55c\ub2e4.<br \/>\n        <\/p>\n<blockquote><p>\n         struct \uad6c\uc870\uccb4 \ubcc0\uc218\uc774\ub984;\n        <\/p><\/blockquote>\n<p>        \ub9cc\uc57d \uc774 \ubcc0\uc218 \uc548\uc5d0 \uc788\ub294 x\ub77c\ub294 \ub140\uc11d\uc758 \uac12\uc774 \ud544\uc694\ud558\uba74 \ub2e4\uc74c\uacfc \uac19\uc774 \ubd88\ub7ec\uc624\uba74 \ub41c\ub2e4.<br \/>\n        <\/p>\n<blockquote><p>\n         \ubcc0\uc218\uc774\ub984.x\n        <\/p><\/blockquote>\n<p>        \ubb3c\ub860 y\uac00 \ud544\uc694\ud558\uba74 \uc810 \ucc0d\uace0 y\ub97c \uc4f0\uba74 \ub41c\ub2e4.<\/p>\n<p>        \uc544\ub798\uc758 \uc18c\uc2a4\ub294 \ub0b4\uac00 C\uc5b8\uc5b4\uc5d0\uc11c \ubcf5\uc18c\uc218\ub97c \ucc98\ub9ac\ud558\uae30 \uc704\ud574\uc11c \uc9c1\uc811 \ub9cc\ub4e0 \ucf54\ub4dc\uc774\ub2e4. \uc0ac\uce59\uc5f0\uc0b0, \ucf24\ub808\ubcf5\uc18c\uc218, \uc2e4\uc218\ubd80\ubd84, \ud5c8\uc218\ubd80\ubd84, \uc808\ub300\uac12 \ub4f1\uc744 \ucc98\ub9ac\ud560 \uc218 \uc788\uac8c \ub418\uc5b4 \uc788\ub2e4. \ud55c\ubc88 \ubd84\uc11d\ud574 \ubcf4\uba74 \uad6c\uc870\uccb4\uac00 \uc5b4\ub5bb\uac8c \uc791\ub3d9\ud558\ub294\uc9c0 \uc54c \uc218 \uc788\uc744 \uac83\uc774\ub2e4.<br \/>\n        <\/p>\n<blockquote>\n<pre>struct cnumber<br\/>{<br\/>\tdouble x;<br\/>\tdouble y;<br\/>};<br\/><br\/>\/\/addition<br\/>struct cnumber add_cnum(struct cnumber z, struct cnumber w)<br\/>{<br\/>\tstruct cnumber a={z.x+w.x,z.y+w.y};<br\/>\treturn a;<br\/>}<br\/><br\/>\/\/subtraction<br\/>struct cnumber sub_cnum(struct cnumber z, struct cnumber w)<br\/>{<br\/>\tstruct cnumber a;<br\/>\ta.x=z.x-w.x;<br\/>\ta.y=z.y-w.y;<br\/>\treturn a;<br\/>}<br\/><br\/>\/\/multiplication<br\/>struct cnumber mul_cnum(struct cnumber z, struct cnumber w)<br\/>{<br\/>\tstruct cnumber a;<br\/>\ta.x=z.x*w.x-z.y*w.y;<br\/>\ta.y=z.x*w.y+z.y*w.x;<br\/>\treturn a;<br\/>}<br\/><br\/>\/\/complex conjugate<br\/>struct cnumber conj_cnum(struct cnumber z)<br\/>{<br\/>\tstruct cnumber a;<br\/>\ta.x=z.x;<br\/>\ta.y=-z.y;<br\/>\treturn a;<br\/>}<br\/><br\/>\/\/norm<br\/>double norm_cnum(struct cnumber z)<br\/>{<br\/>\tdouble a;<br\/>\tz=mul_cnum(z,conj_cnum(z));<br\/>\ta=z.x;<br\/>\treturn a;<br\/>}<br\/><br\/>\/\/division : z is divided by w<br\/>struct cnumber div_cnum(struct cnumber z, struct cnumber w)<br\/>{<br\/>\tstruct cnumber a;<br\/>\ta=mul_cnum(z,conj_cnum(w));<br\/>\ta.x=a.x\/norm_cnum(w);<br\/>\ta.y=a.y\/norm_cnum(w);<br\/>\treturn a;<br\/>}<br\/><br\/>\/\/real part<br\/>double re_cnum(struct cnumber z)<br\/>{<br\/>\tdouble a;<br\/>\ta=z.x;<br\/>\treturn a;<br\/>}<br\/><br\/>\/\/imaginary part<br\/>double im_cnum(struct cnumber z)<br\/>{<br\/>\tdouble a;<br\/>\ta=z.y;<br\/>\treturn a;<br\/>}<br\/><br\/>\/\/complex phase<br\/>struct cnumber phase_cnum(struct cnumber z, double k)<br\/>{<br\/>\tstruct cnumber x={cos(k),sin(k)};<br\/>\tstruct cnumber m=mul_cnum(z,x);<br\/>\treturn m;<br\/>}<br\/><br\/><\/pre>\n<\/blockquote>\n<p><\/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=158\" 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>\uad6c\uc870\uccb4\ub294 \ubb50\ub0d0&#8230; \ubcc0\uc218 \uc5ec\ub7ec\uac1c\ub97c \ubb36\uc5b4\ub454 \uac83\uc744 \uc758\ubbf8\ud55c\ub2e4. \uc6d0\ub798, C\uc5d0\uc11c \uc4f8 \uc218 \uc788\ub294 \ubcc0\uc218 \ud615\ud0dc\ub294 \uc815\uc218, \uc2e4\uc218, \uae34 \uc2e4\uc218 \uc815\ub3c4\uc778\ub370, \uc6b0\ub9b0 \ubca1\ud130\ub3c4 \uc368\uc57c \ud558\uace0 \ubcf5\uc18c\uc218\ub3c4 \uc368\uc57c \ud55c\ub2e4. \uc774\ub7f0 \uacbd\uc6b0, \uc0c8\ub85c\uc6b4 \ud615\ud0dc\ub97c \uc9c0\uc815\ud574 \uc918\uc57c \ud55c\ub2e4. \uc0ac\uc6a9\ubc95\uc740 \uac04\ub2e8\ud558\uace0 \ubcf5\uc7a1\ud558\ub2e4. struct \uad6c\uc870\uccb4 { int x; int y; } \uc774\ub807\uac8c \ud574 \ub450\uba74 \uad6c\uc870\uccb4\uac00 \uc120\uc5b8\ub41c\ub2e4. \uadf8\ub9ac\uace0 \uad6c\uc870\uccb4\uc5d0 \uc788\ub294 \uac12\uc744 \ub2e4\ub978\ub370\uc11c \uac00\uc838\ub2e4\uac00 [&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-7383","post","type-post","status-publish","format-standard","hentry","category-12"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8o6gA-1V5","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts\/7383","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=7383"}],"version-history":[{"count":0,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts\/7383\/revisions"}],"wp:attachment":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7383"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}