{"id":7407,"date":"2019-06-29T10:26:31","date_gmt":"2019-06-29T01:26:31","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=7407"},"modified":"2020-05-28T10:24:05","modified_gmt":"2020-05-28T01:24:05","slug":"%ec%88%98%ec%b9%98%eb%af%b8%eb%b6%84%ec%a0%91%ec%84%a0%ec%9d%98-%ea%b2%b0%ea%b3%bc%eb%a5%bc-%ea%b7%b8%eb%9e%98%ed%94%84%eb%a1%9c-%ed%91%9c%ed%98%84%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=7407","title":{"rendered":"\uc218\uce58\ubbf8\ubd84(\uc811\uc120)\uc758 \uacb0\uacfc\ub97c \uadf8\ub798\ud504\ub85c \ud45c\ud604\ud558\uae30"},"content":{"rendered":"<p>\ub2e4\uc74c\uacfc \uac19\uc740 \ud568\uc218\uac00 \uc788\uc744 \ub54c.. \uc774 \ud568\uc218\ub97c \ubbf8\ubd84\ud55c \uacb0\uacfc\ub294 \uc774 \ud568\uc218\uc758 \uadf8\ub798\ud504\uc5d0 \ub300\ud55c \uc811\uc120\uc758 \ubc29\uc815\uc2dd\uc774 \ub429\ub2c8\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2019\/07\/eq_3.png\" alt=\"\" width=\"167\" height=\"50\" class=\"aligncenter size-full wp-image-7408\" \/><\/p>\n<p>\uc704 \ud568\uc218\uc5d0 \ub300\ud55c \ucf54\ub4dc \uc815\uc758\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\ndef fx(x):\r\n    return x**3 + x\r\n<\/pre>\n<p>\ubbf8\ubd84\uc740, \uc911\uc559\ucc28\ubd84 \ubc29\uc2dd\uc73c\ub85c \uc815\uc758\ud558\uba74 \ub2e4\uc74c\uacfc \uac19\uad6c\uc694.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\ndef numerical_diff(f, x):\r\n    h = 1e-4\r\n    return (f(x+h) - f(x-h)) \/ (2*h)\r\n<\/pre>\n<p>\ubbf8\ubd84 \uacb0\uacfc\ub294 \uc811\uc120\uc778\ub370, \uc774 \uc811\uc120\uc744 \ud45c\ud604\ud558\ub294 \ud568\uc218\ub97c \ubc18\ud658\ud558\ub294 \ud568\uc218\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\ndef tangent_line(f, x):\r\n    d = numerical_diff(f, x)\r\n    y = f(x) - d*x\r\n    return lambda t: d*t + y\r\n<\/pre>\n<p>\uc774\uc81c x \uc808\ud3b8\uc758 \ubc94\uc704\ub97c 0~20\uae4c\uc9c0 \uc7a1\uace0 \ud568\uc218\uc758 \uadf8\ub798\ud504\uc640 \uc774 \ud568\uc218\uc758 x = 11\uc5d0\uc11c\uc758 \uc811\uc120\uc744 \uadf8\ub9ac\ub294 \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nimport numpy as np\r\nimport matplotlib.pylab as plt\r\n\r\n# def numerical_diff(f, x):\r\n# def tangent_line(f, x):\r\n# def fx(x):\r\n\r\nx = np.arange(0.0, 20.0, 0.1)\r\ny = fx(x)\r\nplt.plot(x,y)\r\n\r\ntf = tangent_line(fx, 11)\r\ny2 = tf(x)\r\nplt.plot(x, y2)\r\n\r\nplt.show()\r\n<\/pre>\n<p>\uacb0\uacfc \uadf8\ub798\ud504\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2019\/07\/eq_3_graph.png\" alt=\"\" width=\"642\" height=\"546\" class=\"aligncenter size-full wp-image-7412\" \/><\/p>\n<p>\uc774\uc640 \uac19\uc740 \ubbf8\ubd84\uc5d0 \ub300\ud55c \ud30c\uc774\uc120 \ucf54\ub4dc\ub294 \uae30\uacc4 \ud559\uc2b5\uc774\ub098 \uc2e0\uacbd\ub9dd \ud559\uc2b5\uc5d0\uc11c \uac00\uc911\uce58\uc640 \ud3b8\ud5a5\uc5d0 \ub300\ud55c \ucd5c\uc801\uc758 \uac12\uc744 \uc5bb\uae30 \uc704\ud574 \ud65c\uc6a9\ub418\ub294 \uacbd\uc0ac\ud558\uac15\ubc95(Gradient Descent Method)\uc5d0\uc11c \uc0ac\uc6a9\ub429\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ub2e4\uc74c\uacfc \uac19\uc740 \ud568\uc218\uac00 \uc788\uc744 \ub54c.. \uc774 \ud568\uc218\ub97c \ubbf8\ubd84\ud55c \uacb0\uacfc\ub294 \uc774 \ud568\uc218\uc758 \uadf8\ub798\ud504\uc5d0 \ub300\ud55c \uc811\uc120\uc758 \ubc29\uc815\uc2dd\uc774 \ub429\ub2c8\ub2e4. \uc704 \ud568\uc218\uc5d0 \ub300\ud55c \ucf54\ub4dc \uc815\uc758\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4. def fx(x): return x**3 + x \ubbf8\ubd84\uc740, \uc911\uc559\ucc28\ubd84 \ubc29\uc2dd\uc73c\ub85c \uc815\uc758\ud558\uba74 \ub2e4\uc74c\uacfc \uac19\uad6c\uc694. def numerical_diff(f, x): h = 1e-4 return (f(x+h) &#8211; f(x-h)) \/ (2*h) \ubbf8\ubd84 \uacb0\uacfc\ub294 \uc811\uc120\uc778\ub370, \uc774 \uc811\uc120\uc744 \ud45c\ud604\ud558\ub294 \ud568\uc218\ub97c \ubc18\ud658\ud558\ub294 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=7407\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\uc218\uce58\ubbf8\ubd84(\uc811\uc120)\uc758 \uacb0\uacfc\ub97c \uadf8\ub798\ud504\ub85c \ud45c\ud604\ud558\uae30&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,131,1],"tags":[],"class_list":["post-7407","post","type-post","status-publish","format-standard","hentry","category-algorithms","category-python","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/7407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7407"}],"version-history":[{"count":9,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/7407\/revisions"}],"predecessor-version":[{"id":9398,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/7407\/revisions\/9398"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7407"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}