{"id":10545,"date":"2023-05-08T21:00:00","date_gmt":"2023-05-08T12:00:00","guid":{"rendered":"https:\/\/taki-lab.site\/bocci\/?p=10545"},"modified":"2023-05-05T11:49:35","modified_gmt":"2023-05-05T02:49:35","slug":"%e3%80%90%e6%95%b0%e5%ad%a6%e3%80%91%e3%80%90python%e3%80%91%e8%a1%8c%e5%88%97%e3%81%ae%e9%80%86%e8%a1%8c%e5%88%97%e3%82%92%e6%b1%82%e3%82%81%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/taki-lab.site\/bocci\/?p=10545","title":{"rendered":"\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u884c\u5217\u306e\u9006\u884c\u5217\u3092\u6c42\u3081\u308b\u3002"},"content":{"rendered":"\n<p><a href=\"https:\/\/taki-lab.site\/bocci\/?p=10444\">\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u884c\u5217\u306e\u304b\u3051\u7b97\u3092\u884c\u3046 | \u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f (taki-lab.site)<\/a><\/p>\n\n\n\n<p>\u9006\u884c\u5217\u3068\u306f\u3001\u5143\u306e\u884c\u5217\u306b\u304b\u3051\u7b97\u3092\u884c\u3046\u3068\u3001\u5358\u4f4d\u884c\u5217\u306b\u308b\u884c\u5217\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<p>Python\u3067\u306f\u3001linalg.inv()\u306e\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u4e00\u77ac\u3067\u8a08\u7b97\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>>>> import numpy as np\r\n>>> A = np.matrix(&#91;&#91;5, 3], &#91;2, 1]])\r\n>>> B = np.linalg.inv(A)\r\n>>> B\r\nmatrix(&#91;&#91;-1.,  3.],\r\n        &#91; 2., -5.]])\r\n<\/code><\/pre>\n\n\n\n<p>\u3067\u3001\u8a66\u3057\u306bA\u00d7B\u3092\u8a08\u7b97\u3057\u3066\u5358\u4f4d\u884c\u5217\u306b\u306a\u308b\u304b\u3069\u3046\u304b\u3092\u8a08\u7b97\u3057\u3066\u307f\u305f\u3093\u3067\u3059\u304c\u3001<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>>>> (A * B).astype(np.int64)\r\nmatrix(&#91;&#91;1, 0],\r\n        &#91;0, 0]])<\/code><\/pre>\n\n\n\n<p>\u3093\uff1f<\/p>\n\n\n\n<p>\u5358\u4f4d\u884c\u5217\u306a\u3089\u53f3\u4e0b\u304c1\u306b\u306a\u308b\u306f\u305a\u306a\u3093\u3060\u304c\uff1f<\/p>\n\n\n\n<p>astype(np.int64)\u3068\u306f\u3001inv()\u3092\u8a08\u7b97\u3059\u308b\u3068\u3001\u51fa\u529b\u304c\u6d6e\u52d5\u5c0f\u6570\u306b\u306a\u308b\u305f\u3081\u3001\u6574\u6570\u306b\u5909\u63db\u3059\u308b\u95a2\u6570\u306a\u3093\u3067\u3059\u304c\u3001<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306b\u3001astype(np.int64)\u3092\u53d6\u308a\u9664\u304f\u3068\u3001<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>>>> (A * B)\r\nmatrix(&#91;&#91; 1.00000000e+00, -8.88178420e-16],\r\n        &#91; 2.22044605e-16,  1.00000000e+00]])<\/code><\/pre>\n\n\n\n<p>e-16\u306f\u5c0f\u3055\u3044\u5024\u306a\u306e\u3067\u3001\u6574\u6570\u5316\u3059\u308b\u3068\u307b\u307c0\u3067\u3059\u304c\u3001<\/p>\n\n\n\n<p>\u53f3\u4e0b\u306f\u3069\u3046\u307f\u3066\u30821\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<p>\uff1f\uff1f\uff1f<\/p>\n\n\n\n<a href=\"https:\/\/blog.with2.net\/link\/?id=2023426&#038;cid=9200\" title=\"\u65e5\u3005\u306e\u51fa\u6765\u4e8b\u30e9\u30f3\u30ad\u30f3\u30b0\" target=\"_blank\" rel=\"noopener\"><image src=\"https:\/\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/11\/99c62cdd0038c9d3b540e561ee138b82-1.jpg\"><\/a>\n\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u884c\u5217\u306e\u304b\u3051\u7b97\u3092\u884c\u3046 | \u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f (taki-lab.site) \u9006\u884c\u5217\u3068\u306f\u3001\u5143\u306e\u884c\u5217\u306b\u304b\u3051\u7b97\u3092\u884c\u3046\u3068\u3001\u5358\u4f4d\u884c\u5217\u306b\u308b\u884c\u5217\u306e\u3053\u3068\u3067\u3059\u3002 Python\u3067\u306f\u3001linalg.inv()\u306e\u95a2 &hellip; <a href=\"https:\/\/taki-lab.site\/bocci\/?p=10545\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u884c\u5217\u306e\u9006\u884c\u5217\u3092\u6c42\u3081\u308b\u3002<\/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-10545","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-2K5","jetpack-related-posts":[{"id":10444,"url":"https:\/\/taki-lab.site\/bocci\/?p=10444","url_meta":{"origin":10545,"position":0},"title":"\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u884c\u5217\u306e\u304b\u3051\u7b97\u3092\u884c\u3046","author":"taki","date":"2023\u5e744\u670813\u65e5","format":false,"excerpt":"\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u884c\u5217\u306e\u8db3\u3057\u7b97\u30fb\u5f15\u304d\u7b97\u3092\u884c\u3046 | \u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f (taki-lab\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":10582,"url":"https:\/\/taki-lab.site\/bocci\/?p=10582","url_meta":{"origin":10545,"position":1},"title":"\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u9006\u884c\u5217\u3092\u4f7f\u3063\u3066\u9023\u7acb\u65b9\u7a0b\u5f0f\u306e\u89e3\u3092\u6c42\u3081\u308b\u3002","author":"taki","date":"2023\u5e745\u670813\u65e5","format":false,"excerpt":"\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u884c\u5217\u306e\u9006\u884c\u5217\u3092\u6c42\u3081\u308b\u3002 | \u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f (taki-lab.s\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\/2023\/05\/image-2.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":10364,"url":"https:\/\/taki-lab.site\/bocci\/?p=10364","url_meta":{"origin":10545,"position":2},"title":"\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u884c\u5217\u306e\u8db3\u3057\u7b97\u30fb\u5f15\u304d\u7b97\u3092\u884c\u3046","author":"taki","date":"2023\u5e743\u670830\u65e5","format":false,"excerpt":"\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 | \u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f (ta\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\/2023\/03\/c68bfb3d5648494b68b1f2491a729950.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":10166,"url":"https:\/\/taki-lab.site\/bocci\/?p=10166","url_meta":{"origin":10545,"position":3},"title":"\u3010\u6570\u5b66\u3011\u3010PYTHON\u30112\u3064\u306e\u30d9\u30af\u30c8\u30eb\u306e\u306a\u3059\u89d2\u5ea6\u3092\u6c42\u3081\u308b\u3002","author":"taki","date":"2023\u5e742\u670815\u65e5","format":false,"excerpt":"https:\/\/taki-lab.site\/bocci\/?p=10126 \u3053\u306e\u516c\u5f0f\u3067\u6c42\u3081\u308b\u3053\u3068\u304c\u3067\u304d\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\/2023\/02\/6df66b262b1ccbc8a42146cf1e82ef62.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":10070,"url":"https:\/\/taki-lab.site\/bocci\/?p=10070","url_meta":{"origin":10545,"position":4},"title":"\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u30d9\u30af\u30c8\u30eb\u306e\u65b9\u5411\u3092\u6c42\u3081\u308b","author":"taki","date":"2023\u5e742\u67082\u65e5","format":false,"excerpt":"https:\/\/taki-lab.site\/bocci\/?p=9978 \u30d9\u30af\u30c8\u30eb\u304c\u793a\u3059\u5ea7\u6a19(x,y)\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\/2023\/01\/993e4d9533607bebf14169a859c40f8c.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":8976,"url":"https:\/\/taki-lab.site\/bocci\/?p=8976","url_meta":{"origin":10545,"position":5},"title":"\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u3044\u308d\u3044\u308d\u306a\u95a2\u6570\u306e\u30b0\u30e9\u30d5\u3092\u8868\u793a\u3059\u308b","author":"taki","date":"2022\u5e748\u670815\u65e5","format":false,"excerpt":"https:\/\/taki-lab.site\/bocci\/?p=8931 \u3082\u3063\u3068\u8907\u96d1\u306a\u30b0\u30e9\u30d5\u3092\u63cf\u753b\u3059\u308b\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\/08\/Screenshot-2022-08-13-121441.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-13-121441.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-13-121441.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-13-121441.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-13-121441.png?resize=1050%2C600&ssl=1 3x"},"classes":[]}],"jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/10545","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=10545"}],"version-history":[{"count":2,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/10545\/revisions"}],"predecessor-version":[{"id":10548,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/10545\/revisions\/10548"}],"wp:attachment":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}