{"id":211,"date":"2010-04-14T23:13:50","date_gmt":"2010-04-14T14:13:50","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2010\/04\/14\/_13\/"},"modified":"2010-04-14T23:13:50","modified_gmt":"2010-04-14T14:13:50","slug":"_13","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2010\/04\/14\/_13\/","title":{"rendered":"\u4e00\u4eba\u8aad\u66f8\u4f1a \u300c\u8a08\u7b97\u6a5f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u69cb\u9020\u3068\u89e3\u91c8\u300d (13)"},"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.2.1\u3000\u7dda\u5f62\u518d\u5e30\u3068\u53cd\u5fa9<\/h2>\n<h3>\u554f\u984c 1.9<\/h3>\n<p>\u6b21\u306e2\u3064\u306e\u624b\u7d9a\u304d\u306f\u3069\u3061\u3089\u3082\u5f15\u6570\u3092 1\u5897\u3084\u3059\u624b\u7d9a\u304d\u3068\u3001\u5f15\u6570\u3092 1\u6e1b\u3089\u3059\u624b\u7d9a\u304ddec \u3092\u3064\u304b\u3063\u30662\u3064\u306e\u6b63\u306e\u6570\u3092\u8db3\u3059\u65b9\u6cd5\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u3002<\/p>\n<pre class=\"prettyprint linenums\">(define (plus a b)\r\n  (if (= a 0)\r\n  b\r\n  (inc (plus (dec a) b))))\r\n<\/pre>\n<pre class=\"prettyprint linenums\">(define (plus a b)\r\n  (if (= a 0)\r\n  b\r\n  (plus (dec a) (inc b))))\r\n<\/pre>\n<p>\u7f6e\u304d\u63db\u3048\u30e2\u30c7\u30eb\u3092\u4f7f\u3044\u3001\u305d\u308c\u305e\u308c\u306e\u624b\u7d9a\u304d\u304c (plus 4 5) \u3092\u8a55\u4fa1\u3059\u308b\u3068\u304d\u306b\u751f\u6210\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u3092\u793a\u3057\u3001\u53cd\u5fa9\u7684\u304b\u518d\u5e30\u7684\u304b\u3092\u8ff0\u3079\u3088\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u307e\uff5a\u3001\u300c\u7f6e\u304d\u63db\u3048\u30e2\u30c7\u30eb\u300d 1.1.5 \u624b\u7d9a\u304d\u4f5c\u7528\u306e\u7f6e\u304d\u63db\u3048\u30e2\u30c7\u30eb\u3067\u51fa\u3066\u304d\u305f\u3001\u5404\u4eee\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5bfe\u5fdc\u3059\u308b\u5f15\u6570\u3067\u53d6\u308a\u66ff\u3048\u3001\u624b\u7d9a\u304d\u306e\u672c\u4f53\u3092\u8a55\u4fa1\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u3002\u624b\u7d9a\u304d\u3092\u8003\u3048\u308b\u6642\u306e\u88dc\u52a9\u3067\u3042\u308a\u3001\u89e3\u91c8\u7cfb\u306e\u5b9f\u969b\u306e\u50cd\u304d\u3092\u8ff0\u3079\u308b\u3082\u306e\u3067\u306f\u306a\u3044\u3002<\/p>\n<p>\u3084\u3063\u3066\u307f\u3088\u3046\u3002<\/p>\n<pre class=\"prettyprint linenums\">(define (plus 4 5)                  (if (= 4 0) 5 (inc (plus  3 5))))\r\n    (define (plus 3 5)              (if (= 3 0) 5 (inc (plus  2 5))))\r\n        (define (plus 2 5)          (if (= 2 0) 5 (inc (plus  1 5))))\r\n            (define (plus 1 5)      (if (= 1 0) 5 (inc (plus  0 5))))\r\n                (define (plus 0 5)   5) \r\n            (define (plus 1 5)       6)\r\n        (define (plus 2 5)           7)\r\n    (define (plus 3 5)               8)\r\n(define (plus 4 5)                   9)\r\n9 \r\n\r\n(define (plus 4 5)                 (if (= 4 0) 5 (plus  3 6)))\r\n    (define (plus 3 6)             (if (= 3 0) 6 (plus  2 7)))\r\n        (define (plus 2 7)         (if (= 2 0) 7 (plus  1 8)))\r\n            (define (plus 1 8)     (if (= 1 0) 8 (plus  0 9)))\r\n                (define (plus 0 9) 9)))\r\n            (define (plus 1 8)     9)))\r\n        (define (plus 2 7)         9)))  \r\n    (define (plus 3 6)             9)))\r\n(define (plus 4 5)                 9)))\r\n9\r\n<\/pre>\n<p>\u672c\u66f8\u3067\u3001\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308b\u66f8\u304d\u65b9\u3067\u8868\u73fe\u3059\u308b\u306e\u306f\u3061\u3087\u3063\u3068\u56f0\u96e3\u306a\u306e\u3067\u3001\u518d\u5e30\u3092\u30a4\u30f3\u30c7\u30f3\u30c8\u3067\u8868\u73fe\u3057\u3066\u307f\u305f\u3002<\/p>\n<p><a href=\"\/blg\/glob\/2010\/04\/_12.html\" target=\"_blank\">\u524d\u56de\u78ba\u8a8d\u3057\u305f<\/a>\u306e\u3068\u540c\u69d8\u3001\u524d\u8005\u304c\u518d\u5e30\u7684\u30d7\u30ed\u30bb\u30b9\u306b\u3088\u308a\u7d50\u679c\u304c\u81a8\u5f35\u3068\u53ce\u7e2e\u306b\u3066\u751f\u6210\u3055\u308c\u3066\u304a\u308a\u3001\u5f8c\u8005\u306f\u53cd\u5fa9\u7684\u30d7\u30ed\u30bb\u30b9\u306b\u3088\u308a\u7d50\u679c\u304c\u751f\u6210\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n<p>\u5f8c\u8005\u306e\u30d7\u30ed\u30bb\u30b9\u306f\u672b\u5c3e\u518d\u5e30\u7684\u3068\u3044\u3046\u3089\u3057\u3044\u306e\u3060\u304c\u3001\u4f55\u6545\u304b\uff1f\u3068\u601d\u3063\u305f\u3089\u3001<a href=\"http:\/\/ja.wikipedia.org\/wiki\/%E6%9C%AB%E5%B0%BE%E5%86%8D%E5%B8%B0\" target=\"_blank\">\u95a2\u6570\u306e\u6700\u5f8c\u306e(\u672b\u5c3e\u306e)\u30b9\u30c6\u30c3\u30d7\u304c\u518d\u5e30\u547c\u3073\u51fa\u3057\u306b\u306a\u308b\u3088\u3046\u306a\u5f62<\/a>\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u306b\u3088\u308b\u3089\u3057\u3044\u3002\u4e0a\u8a18\u306e\u7f6e\u304d\u63db\u3048\u30e2\u30c7\u30eb\u304c\u3069\u306e\u3088\u3046\u306b\u51e6\u7406\u3055\u308c\u308b\u304b\u3092\u898b\u308c\u3070\u5206\u304b\u308b\u304c\u3001\u518d\u5e30\u7684\u30d7\u30ed\u30bb\u30b9\u3068\u7570\u306a\u308a\u3001\u53cd\u5fa9\u7684\u30d7\u30ed\u30bb\u30b9\u306b\u3067\u306f\u3001\u8a08\u7b97\u7d50\u679c\u304c\u51fa\u305f\u5f8c\u306f\u3001\u5024\u3092\u547c\u3073\u51fa\u3057\u306e\u9006\u9806\u306b\u8fd4\u3059\u3060\u3051\u3060\u3002\u3053\u306e\u305f\u3081\u3001\u672b\u5c3e\u518d\u5e30\u7684\u306a\u30d7\u30ed\u30bb\u30b9\u306f\u3001\u547c\u3073\u51fa\u3057\u3092\u30b8\u30e3\u30f3\u30d7\u306b\u6700\u9069\u5316\u3067\u304d\u308b\u3068\u3044\u3046\u3053\u3068\u3089\u3057\u3044\u3002<\/p>\n<p><a href=\"http:\/\/ja.wikipedia.org\/wiki\/%E6%9C%AB%E5%B0%BE%E5%86%8D%E5%B8%B0\" target=\"_blank\">Wikipedia \u672b\u5c3e\u518d\u5e30<\/a> \u3092\u53c2\u7167\u3002<\/p>\n<p>\u4eca\u65e5\u306f\u3053\u3053\u307e\u3067\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; 1.2.1\u3000\u7dda\u5f62\u518d\u5e30\u3068\u53cd\u5fa9 \u554f\u984c 1.9 \u6b21\u306e2\u3064\u306e\u624b\u7d9a\u304d\u306f\u3069\u3061\u3089\u3082\u5f15\u6570\u3092 1\u5897\u3084\u3059\u624b\u7d9a\u304d\u3068\u3001\u5f15\u6570\u3092 1\u6e1b\u3089\u3059\u624b\u7d9a\u304ddec \u3092\u3064\u304b\u3063\u30662\u3064\u306e\u6b63\u306e\u6570\u3092\u8db3\u3059\u65b9\u6cd5\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u3002 (define (plus a  [&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,35,36],"tags":[],"class_list":["post-211","post","type-post","status-publish","format-standard","hentry","category-lisp","category-python","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\/211","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=211"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/211\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}