{"id":18770,"date":"2023-04-25T02:15:30","date_gmt":"2023-04-25T02:15:30","guid":{"rendered":"https:\/\/club.informatix.co.jp\/?p=18770"},"modified":"2024-11-05T06:34:10","modified_gmt":"2024-11-05T06:34:10","slug":"sympy%e3%81%a7%e6%bc%b8%e5%8c%96%e5%bc%8f%e3%82%92%e8%a7%a3%e3%81%8f%e3%80%80%e7%95%aa%e5%a4%96%e7%b7%a8%ef%bd%9cpython%e3%81%a7%e6%95%b0%e5%ad%a6%e3%82%92%e5%ad%a6%e3%81%bc%e3%81%86%ef%bc%81%e3%80%80","status":"publish","type":"post","link":"https:\/\/club.informatix.co.jp\/?p=18770","title":{"rendered":"SymPy\u3067\u6f38\u5316\u5f0f\u3092\u89e3\u304f\u3000\u756a\u5916\u7de8\uff5cPython\u3067\u6570\u5b66\u3092\u5b66\u307c\u3046\uff01 \u7b2c32\u56de"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u76ee\u6b21<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e4514f15272\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e4514f15272\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/club.informatix.co.jp\/?p=18770\/#%E5%88%86%E6%95%B0%E5%9E%8B%E6%BC%B8%E5%8C%96%E5%BC%8F%E3%80%80%E5%88%86%E6%95%B0%E3%82%92%E5%87%BA%E5%8A%9B%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\" >\u5206\u6570\u578b\u6f38\u5316\u5f0f\u3000\u5206\u6570\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/club.informatix.co.jp\/?p=18770\/#%E5%88%86%E6%95%B0%E5%87%BA%E5%8A%9B%E6%96%B9%E6%B3%95_%E3%81%9D%E3%81%AE1%E3%80%80fractionsFraction\" >\u5206\u6570\u51fa\u529b\u65b9\u6cd5 \u305d\u306e1\u3000fractions.Fraction<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/club.informatix.co.jp\/?p=18770\/#%E5%88%86%E6%95%B0%E5%87%BA%E5%8A%9B%E6%96%B9%E6%B3%95_%E3%81%9D%E3%81%AE2%E3%80%80sympyRational\" >\u5206\u6570\u51fa\u529b\u65b9\u6cd5 \u305d\u306e2\u3000sympy.Rational<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/club.informatix.co.jp\/?p=18770\/#%E5%88%86%E6%95%B0%E5%9E%8B%E6%BC%B8%E5%8C%96%E5%BC%8F%E3%81%AE%E8%A7%A3%E6%B3%95%E3%82%A2%E3%83%AB%E3%82%B4%E3%83%AA%E3%82%BA%E3%83%A0\" >\u5206\u6570\u578b\u6f38\u5316\u5f0f\u306e\u89e3\u6cd5\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/club.informatix.co.jp\/?p=18770\/#%E5%88%86%E6%95%B0%E5%9E%8B%E6%BC%B8%E5%8C%96%E5%BC%8F%E3%81%AE%E8%A7%A3%E6%B3%95%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0\" >\u5206\u6570\u578b\u6f38\u5316\u5f0f\u306e\u89e3\u6cd5\u30d7\u30ed\u30b0\u30e9\u30e0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/club.informatix.co.jp\/?p=18770\/#%E4%BD%BF%E3%81%84%E6%96%B9\" >\u4f7f\u3044\u65b9<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/club.informatix.co.jp\/?p=18770\/#%E5%87%BA%E5%8A%9B\" >\u51fa\u529b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/club.informatix.co.jp\/?p=18770\/#%E5%AE%9F%E8%A1%8C%E7%B5%90%E6%9E%9C\" >\u5b9f\u884c\u7d50\u679c<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n<h2><span class=\"ez-toc-section\" id=\"%E5%88%86%E6%95%B0%E5%9E%8B%E6%BC%B8%E5%8C%96%E5%BC%8F%E3%80%80%E5%88%86%E6%95%B0%E3%82%92%E5%87%BA%E5%8A%9B%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\"><\/span>\u5206\u6570\u578b\u6f38\u5316\u5f0f\u3000\u5206\u6570\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a href=\"https:\/\/club.informatix.co.jp\/?p=18496\" target=\"_blank\" rel=\"noopener\">\u524d\u3005\u56de<\/a>\u306f\u6f38\u5316\u5f0f\u3092def\u6587\u3067\u6570\u5217\u3092\u8a08\u7b97\u3059\u308b\u65b9\u6cd5\u3001<a href=\"https:\/\/club.informatix.co.jp\/?p=18664\" target=\"_blank\" rel=\"noopener\">\u524d\u56de<\/a>\u306f\u6f38\u5316\u5f0f\u3092sympy.rsolve\u3092\u7528\u3044\u3066\u4e00\u822c\u9805\u3092\u6c42\u3081\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>sympy.rsolve\u3067\u89e3\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u6f38\u5316\u5f0f\u306f\u7dda\u5f62\u306b\u9650\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u6b21\u306e\u3088\u3046\u306a\u5206\u6570\u578b\u306e\u6f38\u5316\u5f0f\u3092sympy.rsolve\u3067\u89e3\u304f\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u305d\u3053\u3067\u4eca\u56de\u306f\u5206\u6570\u578b\u306e\u6f38\u5316\u5f0f\u306e\u4e00\u822c\u9805\u89e3\u6cd5\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u3064\u304f\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-18783\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-1-1024x731.jpg\" alt=\"\" width=\"920\" height=\"657\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-1-1024x731.jpg 1024w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-1-300x214.jpg 300w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-1-768x548.jpg 768w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-1.jpg 1032w\" sizes=\"(max-width: 920px) 100vw, 920px\" \/><\/p>\n<p>\u4e0a\u306e\u30b3\u30fc\u30c9\u3068\u5b9f\u884c\u7d50\u679c\u3092\u898b\u3066\u6c17\u3065\u304f\u3053\u3068\u306f\u3001\u6570\u5217\u304c\u5c0f\u6570\u3067\u51fa\u529b\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3067\u3059\u3002\u521d\u9805\u304c\u6574\u6570\u3067\u3059\u304b\u3089\u3001\u3064\u3065\u304f\u7b2c2\u9805\u4ee5\u964d\u306f\u6709\u7406\u6570\u306e\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u539f\u56e0\u306f3\u884c\u76ee\u306e\u30b3\u30fc\u30c9\u3067\u3059\u3002\u6f38\u5316\u5f0f\u53f3\u8fba\u306e\u6709\u7406\u5f0f\u3007\/\u3007\u304c\u6709\u7406\u6570\u3068\u3057\u3066\u3067\u306f\u306a\u304f\u5272\u308a\u7b97\u3068\u3057\u3066\u8a08\u7b97\u3055\u308c\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u6570\u5217\u3092\u5c0f\u6570\u3068\u3057\u3066\u6b32\u3057\u3044\u306e\u306a\u3089\u3053\u306e\u307e\u307e\u3067\u3082\u3044\u3044\u3067\u3057\u3087\u3046\u304c\u3001\u6b63\u4f53\u306f\u6709\u7406\u6570\u3067\u3059\u304b\u3089\u6709\u7406\u6570\u3068\u3057\u3066\u51fa\u529b\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u3002\u6709\u7406\u6570\u3068\u3057\u3066\u8a08\u7b97\u30fb\u51fa\u529b\u3059\u308b\u65b9\u6cd5\u306f2\u3064\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E5%88%86%E6%95%B0%E5%87%BA%E5%8A%9B%E6%96%B9%E6%B3%95_%E3%81%9D%E3%81%AE1%E3%80%80fractionsFraction\"><\/span>\u5206\u6570\u51fa\u529b\u65b9\u6cd5 \u305d\u306e1\u3000fractions.Fraction<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3042\u308bfractions\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3066\u95a2\u6570fractions.Fraction ()\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>&gt;&gt;&gt;\u00a0 import fractions<\/p>\n<p>fractions.Fraction (\u5206\u5b50, \u5206\u6bcd)\u307e\u305f\u306ffractions.Fraction (\u5206\u5b50\/\u5206\u6bcd)\u3068\u3057\u3066\u4f7f\u3044\u307e\u3059\u3002<br \/>\n\u6700\u521d\u306e\u30b3\u30fc\u30c9\u306e\u5206\u6570\u5f0f\u306e\u90e8\u5206<br \/>\n&gt;&gt;&gt;\u00a0 else:return (a(n-1)-8)\/(a(n-1)-5)<br \/>\n\u3092<br \/>\n&gt;&gt;&gt;\u00a0 else:return fractions.Fraction (a(n-1)-8, a(n-1)-5)<br \/>\n\u307e\u305f\u306f<br \/>\n&gt;&gt;&gt;\u00a0 else:return fractions.Fraction ((a(n-1)-8)\/(a(n-1)-5))<br \/>\n\u306b\u7f6e\u304d\u63db\u3048\u308c\u3070OK\uff01<\/p>\n<p>\u6b21\u304c\u305d\u306e\u51fa\u529b\u7d50\u679c\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-18775\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-2-1024x583.jpg\" alt=\"\" width=\"920\" height=\"524\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-2-1024x583.jpg 1024w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-2-300x171.jpg 300w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-2-768x438.jpg 768w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-2.jpg 1032w\" sizes=\"(max-width: 920px) 100vw, 920px\" \/>fractions.Fraction ()\u306e\u8a73\u7d30\u306f<a href=\"https:\/\/docs.python.org\/ja\/3.9\/library\/fractions.html\" target=\"_blank\" rel=\"noopener\">Python documentation<\/a>\u3092\u53c2\u7167\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E5%88%86%E6%95%B0%E5%87%BA%E5%8A%9B%E6%96%B9%E6%B3%95_%E3%81%9D%E3%81%AE2%E3%80%80sympyRational\"><\/span>\u5206\u6570\u51fa\u529b\u65b9\u6cd5 \u305d\u306e2\u3000sympy.Rational<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>SymPy\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u3042\u308b\u95a2\u6570sympy.Rational()\u3092\u4f7f\u3046\u65b9\u6cd5\u3067\u3059\u3002<br \/>\n&gt;&gt;&gt;\u00a0 import sympy<\/p>\n<p>sympy.Rational (\u5206\u5b50, \u5206\u6bcd)\u307e\u305f\u306fFraction(\u5206\u5b50\/\u5206\u6bcd)\u3068\u3057\u3066\u4f7f\u3044\u307e\u3059\u3002<br \/>\n\u6700\u521d\u306e\u30b3\u30fc\u30c9\u306e\u5206\u6570\u5f0f\u306e\u90e8\u5206<br \/>\n&gt;&gt;&gt;\u00a0 else:return (a(n-1)-8)\/(a(n-1)-5)<br \/>\n\u3092<br \/>\n&gt;&gt;&gt;\u00a0 else:return sympy.Rational (a(n-1)-8, a(n-1)-5)<br \/>\n\u307e\u305f\u306f<br \/>\n&gt;&gt;&gt;\u00a0 else:return sympy.Rational ((a(n-1)-8)\/(a(n-1)-5))<br \/>\n\u306b\u7f6e\u304d\u63db\u3048\u308c\u3070OK\uff01<\/p>\n<p>\u6b21\u304c\u305d\u306e\u51fa\u529b\u7d50\u679c\u3067\u3059\u3002<br \/>\n<img decoding=\"async\" class=\"aligncenter size-large wp-image-18776\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-3-1024x585.jpg\" alt=\"\" width=\"920\" height=\"526\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-3-1024x585.jpg 1024w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-3-300x172.jpg 300w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-3-768x439.jpg 768w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-3.jpg 1032w\" sizes=\"(max-width: 920px) 100vw, 920px\" \/>sympy.Rational()\u306e\u8a73\u7d30\u306f<a href=\"https:\/\/docs.sympy.org\/latest\/modules\/core.html#rational\" target=\"_blank\" rel=\"noopener\">SymPy1.11 documentation<\/a>\u3092\u53c2\u7167\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E5%88%86%E6%95%B0%E5%9E%8B%E6%BC%B8%E5%8C%96%E5%BC%8F%E3%81%AE%E8%A7%A3%E6%B3%95%E3%82%A2%E3%83%AB%E3%82%B4%E3%83%AA%E3%82%BA%E3%83%A0\"><\/span>\u5206\u6570\u578b\u6f38\u5316\u5f0f\u306e\u89e3\u6cd5\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-18777 size-large\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-4-1024x766.jpg\" alt=\"\" width=\"920\" height=\"688\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-4-1024x766.jpg 1024w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-4-300x224.jpg 300w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-4-768x575.jpg 768w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-4-202x150.jpg 202w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-4.jpg 1032w\" sizes=\"(max-width: 920px) 100vw, 920px\" \/>\u5206\u6570\u578b\u6f38\u5316\u5f0f\u306e\u4e00\u822c\u9805\u306f\u6b21\u306e\u624b\u9806\u3067\u6c42\u3081\u307e\u3059\u3002<\/p>\n<ul>\n<li>STEP1. \u3000\u6f38\u5316\u5f0f\u306e\u9805\u3092t\u3068\u7f6e\u3044\u3066\u7279\u6027\u65b9\u7a0b\u5f0f\uff08t\u306e2\u6b21\u65b9\u7a0b\u5f0f\uff09\u3092\u3064\u304f\u308b<\/li>\n<li>STEP2. \u3000\u7279\u6027\u89e3\u3092\u6c42\u3081\u308b\u3000t=t1,t2<\/li>\n<li>STEP3. \u3000\u7279\u6027\u89e3\u304c\u7570\u306a\u308b2\u89e3\uff08\u30b1\u30fc\u30b9a\uff09\u304b\u91cd\u89e3\uff08\u30b1\u30fc\u30b9b\uff09\u3067\u3042\u308b\u304b\u3067\u5834\u5408\u5206\u3051<\/li>\n<li>STEP4a. \u3000\u7279\u6027\u89e3\u304c\u7570\u306a\u308b2\u89e3\u306e\u5834\u5408\u3000b(n)=(a(n)-t1)\/(a(n)-t2)\u3068\u304a\u304f<\/li>\n<li>STEP4b. \u3000\u7279\u6027\u89e3\u304c\u91cd\u89e3\u306e\u5834\u5408\u3000b(n)=1\/(a(n)-t1)\u3068\u304a\u304f<\/li>\n<li>STEP5a. \u3000b(n)\u304c\u7b49\u6bd4\u6570\u5217\u3068\u306a\u308b\uff08\u6f38\u5316\u5f0fb(n+1)=br\u00d7b(n)\uff09\u3002\u516c\u6bd4br\u3092\u8a08\u7b97<\/li>\n<li>STEP5b. \u3000b(n)\u304c\u7b49\u5dee\u6570\u5217\u3068\u306a\u308b\uff08\u6f38\u5316\u5f0fb(n+1)=b(n)+d\uff09\u3002\u516c\u5deed\u3092\u8a08\u7b97<\/li>\n<li>STEP6a. \u3000\u4e00\u822c\u9805b(n)\u3092sympy.rsolve\u306b\u521d\u9805b(1)\u3068\u6f38\u5316\u5f0f\u3092\u6e21\u3057\u3066\u7b97\u51fa<\/li>\n<li>STEP6b. \u3000\u4e00\u822c\u9805b(n)\u3092\u521d\u9805b(1)\u3068\u516c\u5deed\u3092\u7528\u3044\u3066\u7b97\u51fa<\/li>\n<li>STEP7a. \u3000STEP4\u306e\u95a2\u4fc2\u5f0f\u306bb(n)\u3092\u4ee3\u5165\u3057\u305f\u5f0f\u3092a(n)\u306b\u3064\u3044\u3066\u306e\u65b9\u7a0b\u5f0f\u3068\u3057\u3066sympy.solve\u306b\u3088\u308a\u89e3\u3044\u3066a(n)\u3092\u7b97\u51fa<\/li>\n<li>STEP7b. \u3000STEP4\u306e\u95a2\u4fc2\u5f0f\u304b\u3089a(n)=1\/b(n)+t1\u3092\u7b97\u51fa<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"%E5%88%86%E6%95%B0%E5%9E%8B%E6%BC%B8%E5%8C%96%E5%BC%8F%E3%81%AE%E8%A7%A3%E6%B3%95%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0\"><\/span>\u5206\u6570\u578b\u6f38\u5316\u5f0f\u306e\u89e3\u6cd5\u30d7\u30ed\u30b0\u30e9\u30e0<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u3053\u308c\u307e\u3067\u306e\u7d4c\u7def\u3092\u3059\u3079\u3066\u6295\u5165\u3057\u3066\u5206\u6570\u578b\u6f38\u5316\u5f0f\u306e\u4e00\u822c\u9805\u3092\u7b97\u51fa\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u3064\u304f\u308b\u3053\u3068\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&gt;&gt;&gt;\u00a0 # \u5206\u6570\u578b\u6f38\u5316\u5f0f\u306e\u89e3\u6cd5\u30d7\u30ed\u30b0\u30e9\u30e0<br \/>\n&gt;&gt;&gt;\u00a0 # \u5206\u6570\u578b\u6f38\u5316\u5f0f\u306e\u89e3\u6cd5\u30d7\u30ed\u30b0\u30e9\u30e0<br \/>\n&gt;&gt;&gt;\u00a0 import sympy<br \/>\n&gt;&gt;&gt;\u00a0 sympy.init_printing()<br \/>\n&gt;&gt;&gt;\u00a0 from IPython.display import Math<br \/>\n&gt;&gt;&gt;<br \/>\n&gt;&gt;&gt;\u00a0 # \u6f38\u5316\u5f0f\u5b9a\u7fa9<br \/>\n&gt;&gt;&gt;\u00a0 print(&#8221;&#8217;<br \/>\n&gt;&gt;&gt;\u00a0 \u4f8b\u984c1\u3010\u7279\u6027\u89e3\u304c\u7570\u306a\u308b2\u6574\u6570\u89e3\u306e\u5834\u5408\u3011<br \/>\n&gt;&gt;&gt;\u00a0 a1 = 3<br \/>\n&gt;&gt;&gt;\u00a0 p q r s = 1 -8 1 -5<br \/>\n&gt;&gt;&gt;<br \/>\n&gt;&gt;&gt;\u00a0 \u4f8b\u984c2\u3010\u7279\u6027\u89e3\u304c\u91cd\u89e3\uff08\u6574\u6570\uff09\u306e\u5834\u5408\u3011<br \/>\n&gt;&gt;&gt;\u00a0 a1 = 1<br \/>\n&gt;&gt;&gt;\u00a0 p q r s = 1 -1 1 3<br \/>\n&gt;&gt;&gt;<br \/>\n&gt;&gt;&gt;\u00a0 \u4f8b\u984c3\u3010\u7279\u6027\u89e3\u304c\u91cd\u89e3\uff08\u6709\u7406\u6570\uff09\u306e\u5834\u5408\u3011<br \/>\n&gt;&gt;&gt;\u00a0 a1 = 1<br \/>\n&gt;&gt;&gt;\u00a0 p q r s = 8 -1 4 4<br \/>\n&gt;&gt;&gt;<br \/>\n&gt;&gt;&gt;\u00a0 \u4f8b\u984c4\u3010\u7279\u6027\u89e3\u304c2\u865a\u6570\u89e3\u306e\u5834\u5408\u3011<br \/>\n&gt;&gt;&gt;\u00a0 a1 = 1<br \/>\n&gt;&gt;&gt;\u00a0 p q r s = 1 -2 1 1<br \/>\n&gt;&gt;&gt;<br \/>\n&gt;&gt;&gt;\u00a0 \u4f8b\u984c5\u3010\u521d\u671f\u5024\u306b\u6709\u7406\u65701\/2\u3092\u6e21\u3059\u5834\u5408\u3011<br \/>\n&gt;&gt;&gt;\u00a0 a1 = 1\/2<br \/>\n&gt;&gt;&gt;\u00a0 p r r s = 2 1 3 -1<br \/>\n&gt;&gt;&gt;\u00a0 &#8221;&#8217;)<br \/>\n&gt;&gt;&gt;<br \/>\n&gt;&gt;&gt;\u00a0 display(Math(r&#8217;a_1&#8242;))<br \/>\n&gt;&gt;&gt;\u00a0 a1 = input(&#8216;\u5206\u65701\/2\u3082OK &gt;&gt;&gt;&#8217;)<br \/>\n&gt;&gt;&gt;\u00a0 display(Math(r&#8217;a_{n+1}=\\frac{pa_n+q}{ra_n+s}&#8217;))<br \/>\n&gt;&gt;&gt;\u00a0 p,q,r,s=(int(x) for x in input(&#8216;4\u3064\u306e\u6574\u6570\u3092\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u5207\u308a\u3067\u5165\u529b p q r s &gt;&gt;&gt;&#8217;).split())<br \/>\n&gt;&gt;&gt;<br \/>\n&gt;&gt;&gt;\u00a0 #\u6f38\u5316\u5f0f\u8868\u793a<br \/>\n&gt;&gt;&gt;\u00a0 a1=str(a1)<br \/>\n&gt;&gt;&gt;\u00a0 display(Math(r&#8217;a_1 = %s ,~~~a_{n+1} = \\frac{%d a_n + %d}{%d a_n + %d}&#8217; %(a1,p,q,r,s)))<br \/>\n&gt;&gt;&gt;\u00a0 a1=sympy.Rational(a1)<br \/>\n&gt;&gt;&gt;<br \/>\n&gt;&gt;&gt;\u00a0 # def\u6587\u3067\u6570\u5217\u3092\u8a08\u7b97<br \/>\n&gt;&gt;&gt;\u00a0 def A(n):<br \/>\n&gt;&gt;&gt;\u00a0 if n == 1:return a1<br \/>\n&gt;&gt;&gt;\u00a0 else:return sympy.Rational(p*A(n-1)+q, r*A(n-1)+s)<br \/>\n&gt;&gt;&gt;<br \/>\n&gt;&gt;&gt;\u00a0 # a(1)\u304b\u3089a(10)\u307e\u3067\u51fa\u529b<br \/>\n&gt;&gt;&gt;\u00a0 print(&#8216;def\u6587\u306b\u3088\u308b\u8a08\u7b97&#8217;)<br \/>\n&gt;&gt;&gt;\u00a0 for n in range(1, 11):<br \/>\n&gt;&gt;&gt;\u00a0 print(&#8220;{:&gt;7}&#8221;.format(f&#8217;a({n})= &#8216;)+f'{A(n)}&#8217;)<br \/>\n&gt;&gt;&gt;<br \/>\n&gt;&gt;&gt;\u00a0 # \u4e00\u822c\u9805\u8a08\u7b97<br \/>\n&gt;&gt;&gt;<br \/>\n&gt;&gt;&gt;\u00a0 # \u7279\u6027\u65b9\u7a0b\u5f0f\u3092\u89e3\u304f<br \/>\n&gt;&gt;&gt;\u00a0 sympy.init_printing()<br \/>\n&gt;&gt;&gt;\u00a0 t = sympy.Symbol(&#8216;t&#8217;, complex=True)<br \/>\n&gt;&gt;&gt;\u00a0 toku = sympy.Eq(r*t**2+(s-p)*t-q,0)<br \/>\n&gt;&gt;&gt;\u00a0 tokukai = sympy.solve(toku, t)<br \/>\n&gt;&gt;&gt;\u00a0 # \u7279\u6027\u89e3\u8868\u793a<br \/>\n&gt;&gt;&gt;<br \/>\n&gt;&gt;&gt;\u00a0 t1 = sympy.Symbol(&#8216;t1&#8217;, complex=True)<br \/>\n&gt;&gt;&gt;\u00a0 t2 = sympy.Symbol(&#8216;t2&#8217;, complex=True)<br \/>\n&gt;&gt;&gt;\u00a0 kosu = len(tokukai)<br \/>\n&gt;&gt;&gt;\u00a0 if kosu == 2:<br \/>\n&gt;&gt;&gt;\u00a0 print(&#8216;\\n\u7279\u6027\u89e3&#8217;)<br \/>\n&gt;&gt;&gt;\u00a0 display(sympy.Eq(t1,tokukai[0]))<br \/>\n&gt;&gt;&gt;\u00a0 display(sympy.Eq(t2,tokukai[1]))<br \/>\n&gt;&gt;&gt;\u00a0 else:<br \/>\n&gt;&gt;&gt;\u00a0 print(&#8216;\\n\u7279\u6027\u89e3\uff08\u91cd\u89e3\uff09&#8217;)<br \/>\n&gt;&gt;&gt;\u00a0 display(sympy.Eq(t1,tokukai[0]))<br \/>\n&gt;&gt;&gt;<br \/>\n&gt;&gt;&gt;\u00a0 # \u7570\u306a\u308b2\u89e3\u306e\u5834\u5408\u306e\u89e3\u6cd5<br \/>\n&gt;&gt;&gt;\u00a0 def kotonaru():<br \/>\n&gt;&gt;&gt;\u00a0 n = sympy.Symbol(&#8216;n&#8217;, integer = True)<br \/>\n&gt;&gt;&gt;\u00a0 an = sympy.Symbol(&#8216;an&#8217;, complex=True)<br \/>\n&gt;&gt;&gt;\u00a0 a = sympy.Function(&#8216;a&#8217;)<br \/>\n&gt;&gt;&gt;\u00a0 b = sympy.Function(&#8216;b&#8217;)<br \/>\n&gt;&gt;&gt;\u00a0 # b(n)=bn\u3092\u89e3\u304f<br \/>\n&gt;&gt;&gt;\u00a0 br = (p-tokukai[0]*r)\/(p-tokukai[1]*r)<br \/>\n&gt;&gt;&gt;\u00a0 fb = b(n+1)-br*b(n)<br \/>\n&gt;&gt;&gt;\u00a0 b1 = (a1-tokukai[0])\/(a1-tokukai[1])<br \/>\n&gt;&gt;&gt;\u00a0 bn = sympy.rsolve(fb, b(n), {b(1):b1})<br \/>\n&gt;&gt;&gt;\u00a0 # b(n)=bn\u3068a(n)=an\u306e\u95a2\u4fc2\u304b\u3089a(n)=an\u306b\u3064\u3044\u3066\u89e3\u3044\u305f\u3082\u306e\u3092kai\u3068\u3059\u308b<br \/>\n&gt;&gt;&gt;\u00a0 eq = sympy.Eq(bn*(an-tokukai[1]), an-tokukai[0])<br \/>\n&gt;&gt;&gt;\u00a0 kai = sympy.solve(eq, an)[0]<br \/>\n&gt;&gt;&gt;\u00a0 # \u4e00\u822c\u9805\u51fa\u529b<br \/>\n&gt;&gt;&gt;\u00a0 print(&#8216;\u4e00\u822c\u9805&#8217;)<br \/>\n&gt;&gt;&gt;\u00a0 display(sympy.Eq(a(n),sympy.simplify(kai)))<br \/>\n&gt;&gt;&gt;\u00a0 # \u6570\u5217\u306e\u5024\u306e\u691c\u8a3c<br \/>\n&gt;&gt;&gt;\u00a0 print(&#8216;\u4e00\u822c\u9805\u306b\u3088\u308b\u8a08\u7b97&#8217;)<br \/>\n&gt;&gt;&gt;\u00a0 for i in range(1, 11):<br \/>\n&gt;&gt;&gt;\u00a0 #print(f&#8217;a({i})={sympy.simplify(kai.subs(n, i))}&#8217;)<br \/>\n&gt;&gt;&gt;\u00a0 print(&#8220;{:&gt;7}&#8221;.format(f&#8217;a({i})= &#8216;)+f'{sympy.simplify(kai.subs(n, i))}&#8217;)<br \/>\n&gt;&gt;&gt;<br \/>\n&gt;&gt;&gt;\u00a0 # \u91cd\u89e3\u306e\u5834\u5408\u306e\u89e3\u6cd5<br \/>\n&gt;&gt;&gt;\u00a0 def jukai():<br \/>\n&gt;&gt;&gt;\u00a0 n = sympy.Symbol(&#8216;n&#8217;, integer = True)<br \/>\n&gt;&gt;&gt;\u00a0 a = sympy.Function(&#8216;a&#8217;)<br \/>\n&gt;&gt;&gt;\u00a0 b = sympy.Function(&#8216;b&#8217;)<br \/>\n&gt;&gt;&gt;<br \/>\n&gt;&gt;&gt;\u00a0 b1 = sympy.Rational(1, a1-tokukai[0])<br \/>\n&gt;&gt;&gt;\u00a0 a2 = sympy.Rational(p*a1+q, r*a1+s)<br \/>\n&gt;&gt;&gt;\u00a0 b2 = sympy.Rational(1, a2-tokukai[0])<br \/>\n&gt;&gt;&gt;<br \/>\n&gt;&gt;&gt;\u00a0 d = b2-b1<br \/>\n&gt;&gt;&gt;\u00a0 b = b1+(n-1)*d<br \/>\n&gt;&gt;&gt;\u00a0 kai = 1\/b+tokukai[0]<br \/>\n&gt;&gt;&gt;\u00a0 # \u4e00\u822c\u9805\u51fa\u529b<br \/>\n&gt;&gt;&gt;\u00a0 print(&#8216;\u4e00\u822c\u9805&#8217;)<br \/>\n&gt;&gt;&gt;\u00a0 display(sympy.Eq(a(n),sympy.simplify(kai)))<br \/>\n&gt;&gt;&gt;\u00a0 # \u6570\u5217\u306e\u5024\u306e\u691c\u8a3c<br \/>\n&gt;&gt;&gt;\u00a0 print(&#8216;\u4e00\u822c\u9805\u306b\u3088\u308b\u8a08\u7b97&#8217;)<br \/>\n&gt;&gt;&gt;\u00a0 for i in range(1, 11):<br \/>\n&gt;&gt;&gt;\u00a0 #print(f&#8217;a({i})={sympy.simplify(kai.subs(n, i))}&#8217;)<br \/>\n&gt;&gt;&gt;\u00a0 print(&#8220;{:&gt;7}&#8221;.format(f&#8217;a({i})= &#8216;)+f'{sympy.simplify(kai.subs(n, i))}&#8217;)<br \/>\n&gt;&gt;&gt;<br \/>\n&gt;&gt;&gt;\u00a0 # \u89e3\uff08\u89e3\u306e\u500b\u6570\uff09\u3067\u89e3\u6cd5\u3092\u5834\u5408\u5206\u3051<br \/>\n&gt;&gt;&gt;\u00a0 #kosu = len(tokukai)<br \/>\n&gt;&gt;&gt;\u00a0 if kosu == 2:<br \/>\n&gt;&gt;&gt;\u00a0 kotonaru()<br \/>\n&gt;&gt;&gt;\u00a0 else:<br \/>\n&gt;&gt;&gt;\u00a0 jukai()<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E4%BD%BF%E3%81%84%E6%96%B9\"><\/span>\u4f7f\u3044\u65b9<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u521d\u9805a1\u3068\u6f38\u5316\u5f0f\u306e4\u3064\u306e\u4fc2\u6570p\u3001q\u3001r\u3001s\uff08\u6574\u6570\uff09\u3092\u4ee3\u5165\u3057\u307e\u3059\u3002\u4e0a\u90e8\u306b5\u3064\u306e\u4f8b\u984c\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u305d\u306e\u6570\u5024\u3092\u5165\u529b\u6b04\u306b\u30b3\u30d4\u30fc&amp;\u30da\u30fc\u30b9\u30c8\u3067\u304d\u307e\u3059\u30024\u3064\u306e\u4fc2\u6570\u306f\u30b9\u30da\u30fc\u30b9\u5207\u308a\u3067\u300c1 -8 1 -5\u300d\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E5%87%BA%E5%8A%9B\"><\/span><img decoding=\"async\" class=\"aligncenter size-large wp-image-18777\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-4-1024x766.jpg\" alt=\"\" width=\"920\" height=\"688\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-4-1024x766.jpg 1024w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-4-300x224.jpg 300w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-4-768x575.jpg 768w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-4-202x150.jpg 202w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-4.jpg 1032w\" sizes=\"(max-width: 920px) 100vw, 920px\" \/>\u51fa\u529b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>def\u6587\u306b\u3088\u308b\u6700\u521d\u306e10\u9805\u306e\u8a08\u7b97\u7d50\u679c<br \/>\n\u7279\u6027\u89e3<br \/>\n\u4e00\u822c\u9805<br \/>\n\u4e00\u822c\u9805\u306b\u3088\u308b\u6700\u521d\u306e10\u9805\u306e\u8a08\u7b97\u7d50\u679c<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E5%AE%9F%E8%A1%8C%E7%B5%90%E6%9E%9C\"><\/span>\u5b9f\u884c\u7d50\u679c<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u3053\u306e\u300c\u5206\u6570\u578b\u6f38\u5316\u5f0f\u306e\u89e3\u6cd5\u30d7\u30ed\u30b0\u30e9\u30e0\u300d\u306f\u7279\u6027\u89e3\u304c\u6574\u6570\u3001\u6709\u7406\u6570\u3001\u8907\u7d20\u6570\u3067\u3082\u8a08\u7b97\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3042\u308a\u307e\u3059\u3002\u305d\u3053\u3067\u4ee5\u4e0b\u306e5\u3064\u306e\u4f8b\u984c\u3092\u89e3\u3044\u3066\u307f\u307e\u3059\u3002<\/p>\n<h4>\u4f8b\u984c1\u3000\u7279\u6027\u89e3\u304c\u7570\u306a\u308b2\u89e3\u306e\u5834\u5408<\/h4>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-18778\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-5-1024x1001.jpg\" alt=\"\" width=\"920\" height=\"899\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-5-1024x1001.jpg 1024w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-5-300x293.jpg 300w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-5-768x751.jpg 768w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-5.jpg 1032w\" sizes=\"(max-width: 920px) 100vw, 920px\" \/><\/p>\n<h4>\u4f8b\u984c2\u3000\u7279\u6027\u89e3\u304c\u91cd\u89e3\uff08\u6574\u6570\uff09\u306e\u5834\u5408<\/h4>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-18779\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-6-955x1024.jpg\" alt=\"\" width=\"920\" height=\"986\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-6-955x1024.jpg 955w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-6-280x300.jpg 280w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-6-768x824.jpg 768w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-6.jpg 1032w\" sizes=\"(max-width: 920px) 100vw, 920px\" \/><\/p>\n<h4>\u4f8b\u984c3\u3000\u7279\u6027\u89e3\u304c\u91cd\u89e3\uff08\u6709\u7406\u6570\uff09\u306e\u5834\u5408<\/h4>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-18780\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-7-955x1024.jpg\" alt=\"\" width=\"920\" height=\"986\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-7-955x1024.jpg 955w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-7-280x300.jpg 280w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-7-768x824.jpg 768w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-7.jpg 1032w\" sizes=\"(max-width: 920px) 100vw, 920px\" \/><\/p>\n<h4>\u4f8b\u984c4\u3000\u7279\u6027\u89e3\u304c2\u865a\u6570\u89e3\u306e\u5834\u5408<\/h4>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-18781\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-8-1016x1024.jpg\" alt=\"\" width=\"920\" height=\"927\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-8-1016x1024.jpg 1016w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-8-298x300.jpg 298w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-8-150x150.jpg 150w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-8-768x774.jpg 768w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-8-100x100.jpg 100w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-8.jpg 1032w\" sizes=\"(max-width: 920px) 100vw, 920px\" \/><\/p>\n<h4>\u4f8b\u984c5\u3000\u521d\u671f\u5024\u306b\u6709\u7406\u6570\u3092\u6e21\u3059\u5834\u5408<\/h4>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-18782\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-9-968x1024.jpg\" alt=\"\" width=\"920\" height=\"973\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-9-968x1024.jpg 968w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-9-284x300.jpg 284w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-9-768x813.jpg 768w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-9.jpg 1032w\" sizes=\"(max-width: 920px) 100vw, 920px\" \/><\/p>\n<p>\u4f8b\u984c1\u304b\u3089\u4f8b\u984c3\u307e\u3067\u306e\u554f\u984c\u306f\u3001\u904e\u53bb\u306b\u624b\u8a08\u7b97\u3067\u89e3\u3044\u305f\u7d4c\u9a13\u304c\u3042\u308a\u307e\u3059\u3002\u5206\u6570\u578b\u6f38\u5316\u5f0f\u306e\u89e3\u6cd5\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306f\u7279\u6027\u89e3\u304c\u8907\u7d20\u6570\u3067\u3082\u89e3\u3051\u308b\u306f\u305a\u3060\u3068\u306f\u5206\u304b\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u5b9f\u969b\u306b\u89e3\u3044\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u4eca\u56de\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u3064\u304f\u3063\u3066\u307f\u3066\u3001\u7279\u6027\u89e3\u304c\u8907\u7d20\u6570\u306b\u306a\u308b\u5834\u5408\u306e\u4e00\u822c\u9805\u3092\u306f\u3058\u3081\u3066\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u4e00\u822c\u9805\u306b\u898b\u3048\u308b\u865a\u6570\u306f\u6d88\u3048\u3066\u3001\u7d50\u679c\u3068\u3057\u3066\u6574\u6570\u306b\u306a\u308b\u69d8\u5b50\u304c\u5206\u304b\u308a\u307e\u3059\u3002\u305c\u3072\u307f\u306a\u3055\u3093\u3082\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f7f\u3063\u3066\u5206\u6570\u578b\u6f38\u5316\u5f0f\u3092\u89e3\u3044\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4eca\u56de\u4f7f\u7528\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u30d5\u30a1\u30a4\u30eb\uff08Jupyter Notebook\uff09\u306f\u6b21\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/drive.google.com\/file\/d\/15fB5t5eBO7bnr5ODGiPbByRMelKd_Wcy\/view?usp=share_link\" target=\"_blank\" rel=\"noopener\">https:\/\/drive.google.com\/file\/d\/15fB5t5eBO7bnr5ODGiPbByRMelKd_Wcy\/view?usp=share_link<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5206\u6570\u578b\u6f38\u5316\u5f0f\u3000\u5206\u6570\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5 \u524d\u3005\u56de\u306f\u6f38\u5316\u5f0f\u3092def\u6587\u3067\u6570\u5217\u3092\u8a08\u7b97\u3059\u308b\u65b9\u6cd5\u3001\u524d\u56de\u306f\u6f38\u5316\u5f0f\u3092sympy.rsolve\u3092\u7528\u3044\u3066\u4e00\u822c\u9805\u3092\u6c42\u3081\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002 sympy.rsolve\u3067\u89e3\u304f\u3053\u3068\u304c\u3067 &#8230; <\/p>\n","protected":false},"author":4,"featured_media":18783,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,464,526],"tags":[65,754],"class_list":["post-18770","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-4","category-hito-star-mathmatics","category-526","tag-python","tag-754"],"jetpack_featured_media_url":"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2023\/04\/20230424-1.jpg","_links":{"self":[{"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/18770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18770"}],"version-history":[{"count":7,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/18770\/revisions"}],"predecessor-version":[{"id":20768,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/18770\/revisions\/20768"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/media\/18783"}],"wp:attachment":[{"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18770"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18770"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}