{"id":9198,"date":"2022-09-22T19:00:00","date_gmt":"2022-09-22T10:00:00","guid":{"rendered":"https:\/\/taki-lab.site\/bocci\/?p=9198"},"modified":"2022-09-19T10:37:19","modified_gmt":"2022-09-19T01:37:19","slug":"%e3%80%90%e6%95%b0%e5%ad%a6%e3%80%91%e3%80%90python%e3%80%91%e5%9e%82%e7%9b%b4%e4%ba%8c%e7%ad%89%e5%88%86%e7%b7%9a%e3%82%92%e6%b1%82%e3%82%81%e3%82%8b","status":"publish","type":"post","link":"https:\/\/taki-lab.site\/bocci\/?p=9198","title":{"rendered":"\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u5782\u76f4\u4e8c\u7b49\u5206\u7dda\u3092\u6c42\u3081\u308b"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-\u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f wp-block-embed-\u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"ymx0OJuw3S\"><a href=\"https:\/\/taki-lab.site\/bocci\/?p=9158\">\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u4e8c\u3064\u306e\u76f4\u7dda\u306e\u4ea4\u70b9\u3092\u6c42\u3081\u308b<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u4e8c\u3064\u306e\u76f4\u7dda\u306e\u4ea4\u70b9\u3092\u6c42\u3081\u308b&#8221; &#8212; \u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f\" src=\"https:\/\/taki-lab.site\/bocci\/?p=9158&#038;embed=true#?secret=6fdvdNxC4U#?secret=ymx0OJuw3S\" data-secret=\"ymx0OJuw3S\" width=\"474\" height=\"267\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\u3053\u308c\u307e\u3067\u3084\u3063\u3066\u304d\u305f\u3053\u3068\u3092\u4f7f\u3063\u3066\u3001\u4e8c\u3064\u306e\u70b9\u306e\u7dda\u5206\u306e\u4e2d\u9593\u3092\u5782\u76f4\u306b\u4ea4\u308f\u308b\u76f4\u7dda\u3092\u6c42\u3081\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4f8b\u3068\u3057\u3066\u3001(0,1)\u3068(6,5)\u3092\u7d50\u3076\u7dda\u5206\u306e\u5782\u76f4\u4e8c\u7b49\u5206\u7dda\u3092\u6c42\u3081\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3084\u308a\u65b9\u306f\u3001<\/p>\n\n\n\n<p>\u2460\u7dda\u5206\u306e\u50be\u304d\u3092\u6c42\u3081\u308b<\/p>\n\n\n\n<p>\u2461\u7dda\u5206\u306e\u4e2d\u70b9\u3092\u6c42\u3081\u308b<\/p>\n\n\n\n<p>\u2462\u7dda\u5206\u3068\u76f4\u4ea4\u3059\u308b\u76f4\u7dda\u306e\u50be\u304d\u3092\u6c42\u3081\u308b<\/p>\n\n\n\n<p>\u2463\u4e8c\u3064\u306e\u7dda\u306e\u5207\u7247\u3092\u6c42\u3081\u308b<\/p>\n\n\n\n<p>\u3067\u6c42\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import matplotlib.pyplot as plt\r\nimport numpy as np\r\n\r\n#\u5143\u306e\u76f4\u7dda\u306e\u50be\u304d\u3068\u5207\u7247\r\na1 = (5-1)\/(6-0)\r\nb1 = 1\r\n\r\n#\u7dda\u5206\u306e\u4e2d\u70b9\r\ncx = (0 + 6) \/ 2\r\ncy = (1 + 5) \/ 2\r\n\r\n#\u7dda\u5206\u306b\u76f4\u4ea4\u3059\u308b\u76f4\u7dda\u306e\u50be\u304d\r\na2 = -1 \/ a1\r\n\r\n#\u7dda\u5206\u306b\u76f4\u4ea4\u3059\u308b\u76f4\u7dda\u306e\u5207\u7247\r\nb2 = cy - a2 * cx\r\n\r\n#\u76f4\u7dda\u306e\u5f0f\r\nx = np.arange(0, 7)\r\ny1 = a1*x + b1\r\ny2 = a2*x + b2\r\n\r\nplt.plot(x, y1)\r\nplt.plot(x, y2)\r\nplt.axis('equal')\r\nplt.grid(color='0.8')\r\nplt.show()\r\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"474\" height=\"353\" data-attachment-id=\"9200\" data-permalink=\"https:\/\/taki-lab.site\/bocci\/?attachment_id=9200\" data-orig-file=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-19-103553.png?fit=1147%2C855&amp;ssl=1\" data-orig-size=\"1147,855\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2022-09-19-103553\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-19-103553.png?fit=300%2C224&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-19-103553.png?fit=474%2C353&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-19-103553.png?resize=474%2C353&#038;ssl=1\" alt=\"\" class=\"wp-image-9200\" srcset=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-19-103553.png?resize=1024%2C763&amp;ssl=1 1024w, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-19-103553.png?resize=300%2C224&amp;ssl=1 300w, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-19-103553.png?resize=768%2C572&amp;ssl=1 768w, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-19-103553.png?w=1147&amp;ssl=1 1147w, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-19-103553.png?w=948&amp;ssl=1 948w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><\/figure>\n\n\n\n<a href=\"\/\/blog.with2.net\/link\/?2023426:9200\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2019\/12\/a72f208ffbb7386a5edac6282ebb8d1b.png?w=474\" title=\"\u65e5\u3005\u306e\u51fa\u6765\u4e8b\u30e9\u30f3\u30ad\u30f3\u30b0\"><\/a>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u308c\u307e\u3067\u3084\u3063\u3066\u304d\u305f\u3053\u3068\u3092\u4f7f\u3063\u3066\u3001\u4e8c\u3064\u306e\u70b9\u306e\u7dda\u5206\u306e\u4e2d\u9593\u3092\u5782\u76f4\u306b\u4ea4\u308f\u308b\u76f4\u7dda\u3092\u6c42\u3081\u307e\u3059\u3002 \u4f8b\u3068\u3057\u3066\u3001(0,1)\u3068(6,5)\u3092\u7d50\u3076\u7dda\u5206\u306e\u5782\u76f4\u4e8c\u7b49\u5206\u7dda\u3092\u6c42\u3081\u3066\u307f\u307e\u3059\u3002 \u3084\u308a\u65b9\u306f\u3001 \u2460\u7dda\u5206\u306e\u50be\u304d\u3092\u6c42\u3081\u308b \u2461\u7dda\u5206\u306e\u4e2d\u70b9\u3092\u6c42\u3081\u308b \u2462\u7dda\u5206 &hellip; <a href=\"https:\/\/taki-lab.site\/bocci\/?p=9198\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u5782\u76f4\u4e8c\u7b49\u5206\u7dda\u3092\u6c42\u3081\u308b<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"jetpack_post_was_ever_published":false,"_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":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[2806,3],"tags":[],"class_list":["post-9198","post","type-post","status-publish","format-standard","hentry","category-python","category-3"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8SDbY-2om","jetpack-related-posts":[{"id":9158,"url":"https:\/\/taki-lab.site\/bocci\/?p=9158","url_meta":{"origin":9198,"position":0},"title":"\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u4e8c\u3064\u306e\u76f4\u7dda\u306e\u4ea4\u70b9\u3092\u6c42\u3081\u308b","author":"taki","date":"2022\u5e749\u670814\u65e5","format":false,"excerpt":"https:\/\/taki-lab.site\/bocci\/?p=9106 \u4e8c\u3064\u306e\u76f4\u7dda\u306e\u4ea4\u70b9\u3092\u6c42\u3081\u308b\u306b\u306f\u2026","rel":"","context":"Python","block_context":{"text":"Python","link":"https:\/\/taki-lab.site\/bocci\/?cat=2806"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9577,"url":"https:\/\/taki-lab.site\/bocci\/?p=9577","url_meta":{"origin":9198,"position":1},"title":"\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u70b9\u3068\u76f4\u7dda\u306e\u8ddd\u96e2\u3092\u8a08\u7b97\u3059\u308b","author":"taki","date":"2022\u5e7411\u670819\u65e5","format":false,"excerpt":"https:\/\/taki-lab.site\/bocci\/?p=9484 \u70b9(x1, y1)\u3068\u76f4\u7ddaax\u2026","rel":"","context":"Python","block_context":{"text":"Python","link":"https:\/\/taki-lab.site\/bocci\/?cat=2806"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/11\/1606cc1d46c823de87c270f339132360.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3232,"url":"https:\/\/taki-lab.site\/bocci\/?p=3232","url_meta":{"origin":9198,"position":2},"title":"\u3010\u30e9\u30ba\u30d1\u30a4\u3011\u3010GLCD\u3011\u753b\u9762\u306b\u76f4\u7dda\u3092\u5f15\u304f","author":"taki","date":"2020\u5e746\u67089\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.site\/bocci\/?p=3217 \u6700\u2026","rel":"","context":"Raspberry Pi","block_context":{"text":"Raspberry Pi","link":"https:\/\/taki-lab.site\/bocci\/?cat=187"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/06\/IMG_20200609_073101-scaled.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/06\/IMG_20200609_073101-scaled.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/06\/IMG_20200609_073101-scaled.jpg?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/06\/IMG_20200609_073101-scaled.jpg?resize=700%2C400 2x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/06\/IMG_20200609_073101-scaled.jpg?resize=1050%2C600 3x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/06\/IMG_20200609_073101-scaled.jpg?resize=1400%2C800 4x"},"classes":[]},{"id":9106,"url":"https:\/\/taki-lab.site\/bocci\/?p=9106","url_meta":{"origin":9198,"position":3},"title":"\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u76f4\u7dda\u3068\u76f4\u4ea4\u3059\u308b\u76f4\u7dda\u3092\u6c42\u3081\u308b","author":"taki","date":"2022\u5e749\u67086\u65e5","format":false,"excerpt":"https:\/\/taki-lab.site\/bocci\/?p=9039 y=a1x+b\u3068y=a2x+\u2026","rel":"","context":"Python","block_context":{"text":"Python","link":"https:\/\/taki-lab.site\/bocci\/?cat=2806"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-04-123315.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-04-123315.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-04-123315.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-04-123315.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-04-123315.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":9039,"url":"https:\/\/taki-lab.site\/bocci\/?p=9039","url_meta":{"origin":9198,"position":4},"title":"\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u9023\u7acb\u65b9\u7a0b\u5f0f\u3092\u89e3\u304f","author":"taki","date":"2022\u5e748\u670823\u65e5","format":false,"excerpt":"https:\/\/taki-lab.site\/bocci\/?p=8976 2\u70b9\u3092\u901a\u308b\u76f4\u7dda\u306e\u30b0\u30e9\u30d5\u3092\u66f8\u304f\u2026","rel":"","context":"Python","block_context":{"text":"Python","link":"https:\/\/taki-lab.site\/bocci\/?cat=2806"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10256,"url":"https:\/\/taki-lab.site\/bocci\/?p=10256","url_meta":{"origin":9198,"position":5},"title":"\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u6cd5\u7dda\u30d9\u30af\u30c8\u30eb\uff08\u30d9\u30af\u30c8\u30eb\u306e\u5916\u7a4d\uff09\u3092\u6c42\u3081\u308b","author":"taki","date":"2023\u5e743\u67085\u65e5","format":false,"excerpt":"https:\/\/taki-lab.site\/bocci\/?p=10166 \u6cd5\u7dda\u30d9\u30af\u30c8\u30eb\u3068\u306f\u30012\u3064\u306e\u30d9\u2026","rel":"","context":"Python","block_context":{"text":"Python","link":"https:\/\/taki-lab.site\/bocci\/?cat=2806"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/9198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9198"}],"version-history":[{"count":1,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/9198\/revisions"}],"predecessor-version":[{"id":9201,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/9198\/revisions\/9201"}],"wp:attachment":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}