{"id":206,"date":"2010-03-13T15:23:04","date_gmt":"2010-03-13T06:23:04","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2010\/03\/13\/_4\/"},"modified":"2010-03-13T15:23:04","modified_gmt":"2010-03-13T06:23:04","slug":"_4","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2010\/03\/13\/_4\/","title":{"rendered":"\u4e00\u4eba\u8aad\u66f8\u4f1a \u300c\u8a08\u7b97\u6a5f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u69cb\u9020\u3068\u89e3\u91c8\u300d (4)"},"content":{"rendered":"<p><a href=\"http:\/\/www.amazon.co.jp\/dp\/489471163X?tag=typea09-22&amp;link_code=as3&amp;creativeASIN=489471163X&amp;creative=3999&amp;camp=767\"><img decoding=\"async\" src=\"http:\/\/images-jp.amazon.com\/images\/P\/489471163X.09.MZZZZZZZ.jpg\" complete=\"complete\"><\/a>&nbsp;<\/p>\n<p><a href=\"\/blg\/glob\/2010\/03\/_2.html\" target=\"_blank\">\u4e00\u4eba\u8aad\u66f8\u4f1a \u300c\u8a08\u7b97\u6a5f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u69cb\u9020\u3068\u89e3\u91c8\u300d (2)<\/a><\/p>\n<h2>1.1.7 Newton \u6cd5\u306b\u3088\u308b\u5e73\u65b9\u6839<\/h2>\n<p><a href=\"http:\/\/www.akita-nct.ac.jp\/yamamoto\/lecture\/2005\/5E\/nonlinear_equation\/text\/html\/node4.html\" target=\"_blank\">Newton\u6cd5<\/a> \u306b\u3088\u308a\u5e73\u65b9\u6839\u3092\u6c42\u3081\u308b\u624b\u7d9a\u304d\u3092\u5b9f\u88c5\u3059\u308b\u3002<\/p>\n<h3>\u554f\u984c\u30001.7<\/h3>\n<p>\u5e73\u65b9\u6839\u306e\u8a08\u7b97\u3067\u4f7f\u3063\u305f good-enough? \u30c6\u30b9\u30c8\u306f\u975e\u5e38\u306b\u5c0f\u3055\u3044\u5024\u306e\u5e73\u65b9\u6839\u3092\u3068\u308b\u3068\u304d\u306b\u306f\u52b9\u679c\u7684\u3067\u306f\u306a\u3044\u3002\u307e\u305f\u9650\u3089\u308c\u305f\u7cbe\u5ea6\u306b\u304a\u3044\u3066\u975e\u5e38\u306b\u5927\u304d\u3044\u6570\u306b\u3082\u4e0d\u9069\u5207\u3067\u3042\u308b\u3002\u305d\u308c\u305e\u308c\u3069\u306e\u3088\u3046\u306b\u30c6\u30b9\u30c8\u304c\u5931\u6557\u3059\u308b\u304b\uff1f\u307e\u305f\u3001\u5909\u5316\u304c\u4e88\u6e2c\u5024\u306b\u304f\u3089\u3079\u975e\u5e38\u306b\u5c0f\u3055\u304f\u306a\u3063\u305f\u6642\u306b\u7d42\u4e86\u3059\u308b\u624b\u7d9a\u304d\u3092\u8a2d\u8a08\u305b\u3088\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u307e\u305a\u3001\u6b8b\u5ff5\u306a\u304c\u3089\u3001Newton \u6cd5 \u3092\u77e5\u3089\u306a\u3044\u306e\u3067\u3001\u4eca\u5e74\u306e\u76ee\u6a19\u306f\u6570\u5b66\u306e\u52c9\u5f37\u3092\u3059\u308b\u3053\u3068\u306a\u306e\u3067\u3001\u8aad\u307f\u6d41\u3055\u305a\u306bWikipedia\u3067<a href=\"http:\/\/ja.wikipedia.org\/wiki\/%E3%83%8B%E3%83%A5%E3%83%BC%E3%83%88%E3%83%B3%E6%B3%95\" target=\"_blank\">\u8abf\u3079\u308b<\/a>\u3053\u3068\u3068\u3059\u308b\u3002<\/p>\n<p>\u91cd\u306d\u3066\u6b8b\u5ff5\u306a\u304c\u3089\u3001Wikipedia \u306e\u8aac\u660e\u3067\u306f\u3001\u77e5\u8b58\u4e0d\u8db3\u3067\u3001\u308f\u304b\u3063\u305f\u3088\u3046\u306a\u3001\u308f\u304b\u3089\u306a\u3044\u3088\u3046\u306a\u3002<\/p>\n<p><a href=\"http:\/\/www.amazon.co.jp\/dp\/4534028393?tag=typea09-22&amp;link_code=as3&amp;creativeASIN=4534028393&amp;creative=3999&amp;camp=767\"><img decoding=\"async\" src=\"http:\/\/images-jp.amazon.com\/images\/P\/4534028393.09.MZZZZZZZ.jpg\"><\/a><\/p>\n<p>\u5076\u7136\u3001\u6240\u6709\u3057\u3066\u3044\u308b\u672c\u300c<a href=\"http:\/\/www.amazon.co.jp\/dp\/4534028393?tag=typea09-22&amp;link_code=as3&amp;creativeASIN=4534028393&amp;creative=3999&amp;camp=767\" target=\"_blank\">\u5fae\u5206\u30fb\u7a4d\u5206\u306e\u3057\u304f\u307f<\/a>\u300d\u306b\u3001\u30cb\u30e5\u30fc\u30c8\u30f3\u8fd1\u4f3c\u3068\u3057\u3066\u3001\u4e01\u5be7\u306a\u8aac\u660e\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u307e\u305a\u305d\u3061\u3089\u3092\u53c2\u8003\u306b\u3057\u3066\u3001Newton\u6cd5\u306b\u3088\u308b\u5e73\u65b9\u6839\u306e\u8fd1\u4f3c\u3068\u306f\u3069\u3093\u306a\u3082\u306e\u304b\u306e\u7406\u89e3\u3092\u8a66\u307f\u308b\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/2_A5CE\/newton01.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"newton01\" border=\"0\" alt=\"newton01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/2_A5CE\/newton01_thumb.jpg\" width=\"360\" height=\"305\"><\/a> <\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u221a5 \u306e\u5024\u3092\u8abf\u3079\u308b\u3068\u3059\u308b\u3002<\/p>\n<h2>2\u6b21\u95a2\u6570\u306e\u30b0\u30e9\u30d5\u3092\u66f8\u304f<\/h2>\n<p>\u307e\u305a\u3001\u4e0a\u306e\u56f3\u306e2\u6b21\u95a2\u6570\u306e\u30b0\u30e9\u30d5\u306f\u3001y = x^2 &#8211; 5 \u306e\u30b0\u30e9\u30d5\u3002<\/p>\n<p>\u221a5&nbsp; \u3092 \u6e80\u305f\u3059x\u3001\u3000x = \u221a5&nbsp; \u306f\u3001 x^2 = 5 \u3067\u3042\u308a\u3001 x^2 &#8211; 5 = 0 \u3068\u306a\u308b\u3002<\/p>\n<p>Python \u3067\u3001<\/p>\n<pre class=\"prettyprint linenums\">exp  = lambda x : x**2 - 5\r\n<\/pre>\n<p>\u3068\u5b9a\u7fa9\u3057\u3066\u307f\u308b\u3002<\/p>\n<h2>\u9069\u5f53\u306a\u958b\u59cb\u4f4d\u7f6e\u3092\u6c7a\u3081\u308b<\/h2>\n<p>\u6c42\u3081\u305f\u3044\u306e\u306f\u3001\u4e0a\u8a18\u306e2\u6b21\u95a2\u6570\u306e\u30b0\u30e9\u30d5\u3067\u3001y=0 \u3068\u306a\u308b\u3068\u304d\u306e\u3000x \u306e\u5024\u3002\u30b0\u30e9\u30d5\u3092\u898b\u308b\u3068\u30010 \uff5e 5 \u306e\u9593\u306b\u3042\u308b\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u958b\u59cb\u4f4d\u7f6e\u3092 x = 10 \u3068\u3057\u3066\u307f\u308b\u3002\u3059\u308b\u3068\u3001x = 10 \u306e\u5834\u5408\u3001y = 95 \u306b\u5024\u304c\u5b9a\u307e\u308b\u3002(\u4e0a\u56f3\u2460)<\/p>\n<h2>\u63a5\u7dda\u3092\u6c42\u3081\u3001x\u8ef8\u3068\u306e\u4ea4\u70b9\u3092\u6c42\u3081\u308b<\/h2>\n<p>y = x^2 &#8211; 5 \u306e\u30b0\u30e9\u30d5\u4e0a\u306e\u3001\u4e0a\u8a18\u3067\u6c7a\u3081\u305f (10, 95) \u3067\u306e\u63a5\u7dda\u304c\u3001x1 \u3067\u3001y = 0 \u3068\u306a\u308b<a href=\"http:\/\/www.geisya.or.jp\/~mwm48961\/kou3\/sessen1.htm\" target=\"_blank\">\u63a5\u7dda\u306e\u65b9\u7a0b\u5f0f\u3092\u6c42\u3081\u308b<\/a>\u3002<\/p>\n<p>y = f(x) = x^2 &#8211; 5&nbsp; \u3092 \u5fae\u5206\u3059\u308b\u3068&nbsp; f'(x) = 2x \u3067\u3001f'(10) = 20 \u304c \u63a5\u7dda\u306e\u50be\u304d\u306b\u306a\u308b\u3002<\/p>\n<p>\u3068\u3059\u308b\u3068\u3001<\/p>\n<p>\u63a5\u7dda\u306e\u65b9\u7a0b\u5f0f : y &#8211; f(a) = f'(a)(x &#8211; a) <\/p>\n<p>y &#8211; 95 = 20x &#8211; 200<\/p>\n<p>y = 20x &#8211; 105<\/p>\n<p>( y = 20x + b \u3001 95 = 200 + b \u3001\u3000b = -105 )<\/p>\n<p>\u3053\u306e\u63a5\u7dda\u304c\u3001y = 0 \u3068\u306a\u308b\u306e\u306f\u3001x = 5.25 \u3068\u306a\u308b (\u4e0a\u56f3\u2461)<\/p>\n<p>\u3053\u308c\u3067\u3001\u307f\u3066\u308f\u304b\u308b\u3088\u3046\u306b\u3001\u6700\u521d\u306e\u5024\u3001x = 10 \u3088\u308a\u3001y = x^2 &#8211; 5 \u306e x\u8ef8\u3068\u306e\u4ea4\u70b9\u306b\u3088\u308a\u8fd1\u3065\u3044\u305f\u3002<\/p>\n<p>\u3053\u3053\u3067\u53d6\u5f97\u3057\u305f\u5024\u30015.25 \u3092\u521d\u671f\u5024\u3068\u3057\u3066\u3001\u4e0a\u8a18\u306e\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3059\u3053\u3068\u3067\u3001\u221a5 \u306e\u5024\u306b\u8fd1\u4f3c\u3057\u3066\u3044\u304f\u3002<\/p>\n<p>\u3068\u3044\u3046\u306e\u304c \u30cb\u30e5\u30fc\u30c8\u30f3\u8fd1\u4f3c\u3060\u3068\u3002<\/p>\n<p>\u4e0a\u56f3\u306e \u2460 \u3092 <a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/2_A5CE\/an1.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"an1\" border=\"0\" alt=\"an1\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/2_A5CE\/an1_thumb.jpg\" width=\"41\" height=\"26\"><\/a> \u2461 \u3092 <a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/2_A5CE\/an.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"an\" border=\"0\" alt=\"an\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/2_A5CE\/an_thumb.jpg\" width=\"25\" height=\"26\"><\/a> \u3001\u3068\u3057\u3066\u3001\u4e00\u822c\u5316\u3059\u308b\u3068\u3001<a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/2_A5CE\/exp.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"exp\" border=\"0\" alt=\"exp\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/2_A5CE\/exp_thumb.jpg\" width=\"195\" height=\"66\"><\/a> \u3068\u306a\u308b\u3002<\/p>\n<p>\u8a08\u7b97\u7d50\u679c\u3092\u51fa\u529b\u3057\u3066\u307f\u308b\u3002<\/p>\n<p>\u3088\u3046\u3059\u308b\u306b\u3001n \u3092\u3069\u3093\u3069\u3093\u5897\u3084\u3057\u3066\u3044\u304f\u3068\u3001\u5f90\u3005\u306b\u8fd1\u3065\u3044\u3066\u3044\u3063\u3066\u3044\u308b\u306e\u304c\u308f\u304b\u308b\u3002\u3068\u308a\u3042\u3048\u305a\u3001\u5bcc\u58eb\u5c71\u9e93\u306b\u9e1a\u9d61\u304c\u9cf4\u304f\u6761\u4ef6\u306f\u6e80\u305f\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/2_A5CE\/result01.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"result01\" border=\"0\" alt=\"result01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/2_A5CE\/result01_thumb.jpg\" width=\"211\" height=\"220\"><\/a> <\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/2_A5CE\/result02.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"result02\" border=\"0\" alt=\"result02\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/2_A5CE\/result02_thumb.jpg\" width=\"302\" height=\"154\"><\/a> <\/p>\n<h2>\u30b0\u30e9\u30d5\u306e\u30b3\u30fc\u30c9\u306a\u3069<\/h2>\n<h3>Python \u3067 \u30b0\u30e9\u30d5\u3092\u66f8\u304f\u305f\u3081\u306e\u6e96\u5099\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u3092\u53c2\u7167<\/h3>\n<p>Python \u3067 \u30b0\u30e9\u30d5\u3092\u304b\u3051\u308b\u3088\u3046\u306b\u3057\u3068\u304f\u3068\u3001\u3053\u3046\u3044\u3063\u305f\u52c9\u5f37\u306e\u6642\u306b\u5f79\u7acb\u3064\u306a\u3041\u3002\u3068\u3002\u7c21\u5358\u306b\u304b\u3051\u308b\u3057\u3002Python \u30a4\u30a4!<\/p>\n<p><a title=\"\/tips\/wiki.cgi?page=Python+NumPy\" href=\"\/tips\/wiki.cgi?page=Python+NumPy\">\/tips\/wiki.cgi?page=Python+NumPy<\/a><\/p>\n<p><a title=\"\/tips\/wiki.cgi?page=Python+matplotlib\" href=\"\/tips\/wiki.cgi?page=Python+matplotlib\">\/tips\/wiki.cgi?page=Python+matplotlib<\/a><\/p>\n<h3>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9<\/h3>\n<pre class=\"prettyprint linenums\"># -*- encoding:utf-8 -*-\r\nfrom pylab import *\r\nfrom numpy import *\r\nfrom numpy.ma.core import arange\r\n\r\n# \u4e8c\u6b21\u95a2\u6570 f(x) y = x^2 - 5\r\nexp  = lambda x : x**2 - 5\r\n# \u4e8c\u6b21\u95a2\u6570\u306e\u5fae\u5206 f'(x) y = x^2 - 5 \r\nexpd = lambda x : 2 * x\r\n        \r\ndef f1(x_range, intarval):\r\n    '''\r\n        \u95a2\u6570exp\u306b\u5bfe\u3057\u3066\u3001x\u306e\u5024 x_range[0] \uff5e x_range[1] \u9593\u9694 intarval \u306b\u5bfe\u5fdc\u3059\u308b y \u3092\u53d6\u5f97\r\n    '''\r\n    x = arange(x_range[0], x_range[1], intarval)\r\n    y = [exp(tx) for tx in x]\r\n    return (x, y)\r\n\r\nif __name__ == '__main__':\r\n    grid(True)\r\n    \r\n    # \u4e8c\u6b21\u95a2\u6570\u306e\u30b0\u30e9\u30d5\u3092\u66f8\u304f\r\n    (x, y) = f1((-11.0, 11.0),0.1)\r\n    plot(x, y)\r\n\r\n    # \u9069\u5f53\u306a\u5024\u3092\u8a2d\u5b9a\r\n    tmp_x2 = 10.0\r\n    \r\n    repeat = 5\r\n    for i in range(repeat):\r\n        print '%d : %s' % (i+1, tmp_x2)\r\n        tmp_x1 = tmp_x2\r\n        \r\n        x1 = (tmp_x2, tmp_x1) \r\n        y1 = (0, exp(tmp_x1))\r\n        plot(x1, y1, 'k--')\r\n    \r\n        tmp_x2 = tmp_x1 - (exp(tmp_x1) \/ expd(tmp_x1))\r\n        x1 = (tmp_x2, tmp_x1) \r\n        y1 = (0, exp(tmp_x1))\r\n        plot(x1, y1)\r\n      \r\n    show()\r\n<\/pre>\n<\/p>\n<p>\u3088\u3046\u3084\u304f\u3001\u554f\u984c\u306b\u53d6\u308a\u304b\u304b\u308b\u6e96\u5099\u304c\u3067\u304d\u305f\u3002<\/p>\n<p>\u3053\u306e\u30da\u30fc\u30b9\u3060\u3068\u8aad\u4e86\u3059\u308b\u306e\u306b1\u5e74\u3067\u306f\u304d\u304b\u3093\u306a\uff5e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u4e00\u4eba\u8aad\u66f8\u4f1a \u300c\u8a08\u7b97\u6a5f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u69cb\u9020\u3068\u89e3\u91c8\u300d (2) 1.1.7 Newton \u6cd5\u306b\u3088\u308b\u5e73\u65b9\u6839 Newton\u6cd5 \u306b\u3088\u308a\u5e73\u65b9\u6839\u3092\u6c42\u3081\u308b\u624b\u7d9a\u304d\u3092\u5b9f\u88c5\u3059\u308b\u3002 \u554f\u984c\u30001.7 \u5e73\u65b9\u6839\u306e\u8a08\u7b97\u3067\u4f7f\u3063\u305f good-enou [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[34,35,36],"tags":[],"class_list":["post-206","post","type-post","status-publish","format-standard","hentry","category-scheme","category-math","category-reading"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=206"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/206\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}