{"id":201,"date":"2010-03-21T19:18:08","date_gmt":"2010-03-21T10:18:08","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2010\/03\/21\/_7\/"},"modified":"2010-03-21T19:18:08","modified_gmt":"2010-03-21T10:18:08","slug":"_7","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2010\/03\/21\/_7\/","title":{"rendered":"\u4e00\u4eba\u8aad\u66f8\u4f1a \u300c\u8a08\u7b97\u6a5f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u69cb\u9020\u3068\u89e3\u91c8\u300d (7)"},"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> <\/p>\n<p>&nbsp;<\/p>\n<h2>1.1.7 Newton \u6cd5\u306b\u3088\u308b\u5e73\u65b9\u6839<\/h2>\n<p>&nbsp;<\/p>\n<h3>\u554f\u984c\u30001.7<\/h3>\n<h3>1.\u3042\u308b\u7e70\u8fd4\u3057\u304b\u3089 guess \u306e\u5909\u5316\u306b\u6ce8\u76ee\u3057\u3001\u5909\u5316\u304c\u4e88\u6e2c\u5024\u306b\u6bd4\u3079\u975e\u5e38\u306b\u5c0f\u3055\u304f\u306a\u3063\u305f\u6642\u70b9\u3067\u6b62\u3081\u308b\u624b\u7d9a\u304d\u3092\u8a2d\u8a08\u3059\u308b\u3002\u3053\u308c\u306f\u5c0f\u3055\u3044\u6570\u3001\u5927\u304d\u3044\u6570\u306b\u5bfe\u3057\u3066\u3046\u307e\u304f\u52d5\u304f\u304b\uff1f<\/h3>\n<pre class=\"prettyprint linenums\">(define (good-enough? guess pre-guess)\r\n  (&lt; (abs (- guess pre-guess)) 0.001))\r\n(define (average x y) (\/ (+ x y) 2))\r\n(define (improve guess x)\r\n  (average guess (\/ x guess)))\r\n(define (sqrt-itr guess x) \r\n  (if (good-enough? (improve guess x) guess)\r\n      (improve guess x)\r\n      (sqrt-itr (improve guess x)\r\n                x)))\r\n(define (sqrt2 x) (sqrt-itr 1.0 x))\r\n<\/pre>\n<p>\u307e\u305a\u3001\u5358\u7d14\u306b\u4e88\u6e2c\u5024\u306e\u5dee\u304c\u4e00\u5b9a\u306e\u5024(0.001) \u672a\u6e80\u306b\u306a\u3063\u305f\u3089\u3001\u51e6\u7406\u3092\u7d42\u4e86\u3059\u308b\u3088\u3046\u306b good-enough? \u3092\u66f8\u304d\u63db\u3048\u3001sqrt-itr \u306e\u5b9f\u88c5\u3092\u305d\u308c\u306b\u3042\u308f\u305b\u3066\u5909\u66f4\u3057\u3066\u307f\u308b\u3002<\/p>\n<p><a href=\"\/blg\/glob\/2010\/03\/_6.html\" target=\"_blank\">\u554f\u984c\u304c\u3042\u3063\u305f\u5024<\/a>\u306b\u5bfe\u3057\u3066\u3001\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/2_A5CE\/newton05_01.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"newton05_01\" border=\"0\" alt=\"newton05_01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/2_A5CE\/newton05_01_thumb.jpg\" width=\"389\" height=\"193\"><\/a> <\/p>\n<p>\u5c0f\u3055\u3044\u5024\u3067\u3001\u8aa4\u5dee\u304c\u975e\u5e38\u306b\u5927\u304d\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u308a\u3001\u5927\u304d\u3044\u5024\u3067\u7121\u9650\u30eb\u30fc\u30d7\u306b\u9665\u308b\u3053\u3068\u306f\u306a\u304f\u306a\u3063\u305f\u3002<\/p>\n<p>\u307e\u305f\u3001good-enough? \u3067\u306e\u5224\u5b9a\u7528\u5b9a\u6570\u3092\u5c0f\u3055\u304f\u3059\u308b\u3053\u3068\u3067\u3001\u7cbe\u5ea6\u3082\u3042\u304c\u308b\u3088\u3046\u3060\u3002<\/p>\n<p>sqrt-itr \u3067\u3001improve \u304c 2\u56de \u547c\u3070\u308c\u308b\u306e\u304c\u6c17\u306b\u306a\u308b\u304c\u3001\u307e\u3060\u3001Scheme \u3067\u5909\u6570\u306e\u4f7f\u3044\u65b9\u3092\u77e5\u3089\u306a\u3044\u306e\u3067\u3001\u3088\u3057\u3068\u3057\u3066\u304a\u304f\u3002<\/p>\n<p><a href=\"http:\/\/www.akita-nct.ac.jp\/yamamoto\/lecture\/2005\/5E\/nonlinear_equation\/text\/html\/node4.html\" target=\"_blank\">\u4e00\u822c\u7684\u306b\u306f\u3001\u7d42\u4e86\u5224\u5b9a\u306f\u3001\u4ee5\u4e0b\u3068\u3059\u308b\u3088\u3046\u3060<\/a>\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/2_A5CE\/newton05_02.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"newton05_02\" border=\"0\" alt=\"newton05_02\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/2_A5CE\/newton05_02_thumb.jpg\" width=\"134\" height=\"61\"><\/a> <\/p>\n<p>\u300c\u3053\u308c\u4ee5\u5916\u306b\u3082\u8a08\u7b97\u306e\u7d42\u4e86\u3092\u6c7a\u3081\u308b\u3053\u3068\u306f\u53ef\u80fd\u306a\u306e\u3067\u3001\u72b6\u6cc1\u306b\u5fdc\u3058\u3066\u3001\u8a08\u7b97\u306e\u6253\u3061\u5207\u308a\u65b9\u6cd5\u3092\u6c7a\u3081\u308c\u3070\u3088\u3044\u3002\u300d \u3068\u306e\u3053\u3068\u3002<\/p>\n<p>\u5927\u304d\u3044\u6570\u3001\u5c0f\u3055\u3044\u6570\u306b\u5bfe\u3057\u3066\u3082\u3001\u3046\u307e\u304f\u52d5\u304f\u3002\u30fb\u30fb\u30fb \u3068\u601d\u3046\u3093\u3060\u3051\u3069\u306a\u3041\u3002\u300c\u305d\u308c\u306a\u308a\u306b\u3046\u307e\u304f\u52d5\u304f\u300d\u304b\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; 1.1.7 Newton \u6cd5\u306b\u3088\u308b\u5e73\u65b9\u6839 &nbsp; \u554f\u984c\u30001.7 1.\u3042\u308b\u7e70\u8fd4\u3057\u304b\u3089 guess \u306e\u5909\u5316\u306b\u6ce8\u76ee\u3057\u3001\u5909\u5316\u304c\u4e88\u6e2c\u5024\u306b\u6bd4\u3079\u975e\u5e38\u306b\u5c0f\u3055\u304f\u306a\u3063\u305f\u6642\u70b9\u3067\u6b62\u3081\u308b\u624b\u7d9a\u304d\u3092\u8a2d\u8a08\u3059\u308b\u3002\u3053\u308c\u306f\u5c0f\u3055\u3044\u6570\u3001\u5927\u304d\u3044 [&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":[33,20,34,36],"tags":[],"class_list":["post-201","post","type-post","status-publish","format-standard","hentry","category-lisp","category-python","category-scheme","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\/201","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=201"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/201\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}