{"id":3042,"date":"2020-04-25T13:44:12","date_gmt":"2020-04-25T04:44:12","guid":{"rendered":"https:\/\/www.ktech.biz\/jp\/?p=3042"},"modified":"2020-08-09T15:10:48","modified_gmt":"2020-08-09T06:10:48","slug":"python","status":"publish","type":"post","link":"https:\/\/www.ktech.biz\/jp\/manual-api\/python\/","title":{"rendered":"XLPack API: Python \u4f7f\u7528\u4f8b"},"content":{"rendered":"<h3>Python\u304b\u3089XLPack\u3092\u547c\u3073\u51fa\u3059<\/h3>\n<p>Python\u304b\u3089XLPack Lite\u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306b\u5fc5\u8981\u306a\u62e1\u5f35\u30e2\u30b8\u30e5\u30fc\u30eb\u304cSDK\u306b\u5165\u3063\u3066\u3044\u307e\u3059. \u3053\u308c\u3092\u4f7f\u3046\u3068, \u547c\u3073\u51fa\u3057\u30d7\u30ed\u30b0\u30e9\u30e0\u306f &#8220;import XLPackLite&#8221; (32\u30d3\u30c3\u30c8\u7248\u3067\u306f &#8220;import XLPackLite_32&#8221;) \u3068\u5ba3\u8a00\u3059\u308b\u3060\u3051\u3067\u7d44\u8fbc\u307f\u95a2\u6570\u306e\u3088\u3046\u306b\u7c21\u5358\u306bXLPack Lite\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059.<br \/>\n\u884c\u5217\u3092\u8868\u3059\u305f\u3081\u306b\u306fNumpy\u306endarray\u3092\u4f7f\u7528\u3057\u307e\u3059. \u4fc2\u6570\u884c\u5217a, \u53f3\u8fbab\u3068\u3082\u306b1\u6b21\u5143\u914d\u5217\u3067\u30822\u6b21\u5143\u914d\u5217\u3067\u3082\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059.<\/p>\n<h3>Python\u30d7\u30ed\u30b0\u30e9\u30e0\u4f8b (\u4f8b\u984c(1))<\/h3>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>import numpy as np\nfrom XLPack import *\n\ndef TestDgesv():\n    n = 3\n    a = np.array([\n        [0.2, -0.32, -0.8],\n        [-0.11, 0.81, -0.92],\n        [-0.93, 0.37, -0.29]])\n    b = np.array([-0.3727, 0.4319, -1.4247])\n    ipiv = np.empty(n, dtype=int)\n    info = dgesv(n, a, ipiv, b)\n    print(b, info)\n\nTestDgesv()<\/code><\/pre>\n<\/div>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plane\"><code>[0.86 0.64 0.51] 0<\/code><\/pre>\n<\/div>\n<h3>Python\u30d7\u30ed\u30b0\u30e9\u30e0\u4f8b (\u4f8b\u984c(2))<\/h3>\n<p>\u4f8b\u984c(2)\u3067\u306ff(x)\u306e\u7a4d\u5206\u3092qk15\u3092\u4f7f\u3063\u3066\u6c42\u3081\u307e\u3059. qk15\u306ff(x)\u3092\u5b9a\u7fa9\u3059\u308b\u5916\u90e8\u95a2\u6570\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059. \u5916\u90e8\u95a2\u6570\u306fPython\u3067\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d, qk15\u306f\u5fc5\u8981\u306a\u3068\u304d\u306b\u305d\u308c\u3092\u547c\u3073\u51fa\u3057\u307e\u3059.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>import numpy as np\nfrom XLPack import *\n\ndef f(x):\n    return 1\/(1 + x**2)\n\ndef TestQk15():\n    a = 0\n    b = 4\n    s, abserr = qk15(f, a, b)\n    print(s, abserr)\n\nTestQk15()<\/code><\/pre>\n<\/div>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plane\"><code>1.3258176613637855 0.0014827239412162237\n<\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Python\u304b\u3089XLPack\u3092\u547c\u3073\u51fa\u3059 Python\u304b\u3089XLPack Lite\u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306b\u5fc5\u8981\u306a\u62e1\u5f35\u30e2\u30b8\u30e5\u30fc\u30eb\u304cSDK\u306b\u5165\u3063\u3066\u3044\u307e\u3059. \u3053\u308c\u3092\u4f7f\u3046\u3068, \u547c\u3073\u51fa\u3057\u30d7\u30ed\u30b0\u30e9\u30e0\u306f &#8220;import XLPackL [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[16],"tags":[],"class_list":["post-3042","post","type-post","status-publish","format-standard","hentry","category-manual-api"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Python\u304b\u3089XLPack\u3092\u547c\u3073\u51fa\u3059 Python\u304b\u3089XLPack Lite\u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306b\u5fc5\u8981\u306a\u62e1\u5f35\u30e2\u30b8\u30e5\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"Administrator\"\/>\n\t<meta name=\"google-site-verification\" content=\"5PEQMQVhF0wv5i-xMYW9a3HzuBwixzVduoR2arr5UDM\" \/>\n\t<meta name=\"msvalidate.01\" content=\"EEB9704E04960338720AEA89E77E749F\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.ktech.biz\/jp\/manual-api\/python\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/manual-api\\\/python\\\/#article\",\"name\":\"XLPack API: Python \\u4f7f\\u7528\\u4f8b | K \\u30c6\\u30af\\u30ce\\u30ed\\u30b8\\u30fc\",\"headline\":\"XLPack API: Python \\u4f7f\\u7528\\u4f8b\",\"author\":{\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/author\\\/wadmin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/#organization\"},\"datePublished\":\"2020-04-25T13:44:12+09:00\",\"dateModified\":\"2020-08-09T15:10:48+09:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/manual-api\\\/python\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/manual-api\\\/python\\\/#webpage\"},\"articleSection\":\"\\u30de\\u30cb\\u30e5\\u30a2\\u30eb(API)\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/manual-api\\\/python\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.ktech.biz\\\/jp\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/category\\\/manual-api\\\/#listItem\",\"name\":\"\\u30de\\u30cb\\u30e5\\u30a2\\u30eb(API)\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/category\\\/manual-api\\\/#listItem\",\"position\":2,\"name\":\"\\u30de\\u30cb\\u30e5\\u30a2\\u30eb(API)\",\"item\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/category\\\/manual-api\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/manual-api\\\/python\\\/#listItem\",\"name\":\"XLPack API: Python \\u4f7f\\u7528\\u4f8b\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/manual-api\\\/python\\\/#listItem\",\"position\":3,\"name\":\"XLPack API: Python \\u4f7f\\u7528\\u4f8b\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/category\\\/manual-api\\\/#listItem\",\"name\":\"\\u30de\\u30cb\\u30e5\\u30a2\\u30eb(API)\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/#organization\",\"name\":\"K \\u30c6\\u30af\\u30ce\\u30ed\\u30b8\\u30fc\",\"description\":\"Excel\\u3067\\u672c\\u683c\\u7684\\u306a\\u6570\\u5024\\u8a08\\u7b97\\u304c\\u3067\\u304d\\u308b\\uff01\",\"url\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/author\\\/wadmin\\\/#author\",\"url\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/author\\\/wadmin\\\/\",\"name\":\"Administrator\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/manual-api\\\/python\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ba306ded26254eaa30f5f7d0a9a3a1555a04b1f34069c8d4ebf8c40646da82c4?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Administrator\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/manual-api\\\/python\\\/#webpage\",\"url\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/manual-api\\\/python\\\/\",\"name\":\"XLPack API: Python \\u4f7f\\u7528\\u4f8b | K \\u30c6\\u30af\\u30ce\\u30ed\\u30b8\\u30fc\",\"description\":\"Python\\u304b\\u3089XLPack\\u3092\\u547c\\u3073\\u51fa\\u3059 Python\\u304b\\u3089XLPack Lite\\u3092\\u547c\\u3073\\u51fa\\u3059\\u305f\\u3081\\u306b\\u5fc5\\u8981\\u306a\\u62e1\\u5f35\\u30e2\\u30b8\\u30e5\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/manual-api\\\/python\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/author\\\/wadmin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/author\\\/wadmin\\\/#author\"},\"datePublished\":\"2020-04-25T13:44:12+09:00\",\"dateModified\":\"2020-08-09T15:10:48+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/#website\",\"url\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/\",\"name\":\"K \\u30c6\\u30af\\u30ce\\u30ed\\u30b8\\u30fc\",\"description\":\"Excel\\u3067\\u672c\\u683c\\u7684\\u306a\\u6570\\u5024\\u8a08\\u7b97\\u304c\\u3067\\u304d\\u308b\\uff01\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.ktech.biz\\\/jp\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"XLPack API: Python \u4f7f\u7528\u4f8b | K \u30c6\u30af\u30ce\u30ed\u30b8\u30fc","description":"Python\u304b\u3089XLPack\u3092\u547c\u3073\u51fa\u3059 Python\u304b\u3089XLPack Lite\u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306b\u5fc5\u8981\u306a\u62e1\u5f35\u30e2\u30b8\u30e5","canonical_url":"https:\/\/www.ktech.biz\/jp\/manual-api\/python\/","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"","webmasterTools":{"google-site-verification":"5PEQMQVhF0wv5i-xMYW9a3HzuBwixzVduoR2arr5UDM","msvalidate.01":"EEB9704E04960338720AEA89E77E749F","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ktech.biz\/jp\/manual-api\/python\/#article","name":"XLPack API: Python \u4f7f\u7528\u4f8b | K \u30c6\u30af\u30ce\u30ed\u30b8\u30fc","headline":"XLPack API: Python \u4f7f\u7528\u4f8b","author":{"@id":"https:\/\/www.ktech.biz\/jp\/author\/wadmin\/#author"},"publisher":{"@id":"https:\/\/www.ktech.biz\/jp\/#organization"},"datePublished":"2020-04-25T13:44:12+09:00","dateModified":"2020-08-09T15:10:48+09:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/www.ktech.biz\/jp\/manual-api\/python\/#webpage"},"isPartOf":{"@id":"https:\/\/www.ktech.biz\/jp\/manual-api\/python\/#webpage"},"articleSection":"\u30de\u30cb\u30e5\u30a2\u30eb(API)"},{"@type":"BreadcrumbList","@id":"https:\/\/www.ktech.biz\/jp\/manual-api\/python\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.ktech.biz\/jp#listItem","position":1,"name":"Home","item":"https:\/\/www.ktech.biz\/jp","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ktech.biz\/jp\/category\/manual-api\/#listItem","name":"\u30de\u30cb\u30e5\u30a2\u30eb(API)"}},{"@type":"ListItem","@id":"https:\/\/www.ktech.biz\/jp\/category\/manual-api\/#listItem","position":2,"name":"\u30de\u30cb\u30e5\u30a2\u30eb(API)","item":"https:\/\/www.ktech.biz\/jp\/category\/manual-api\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ktech.biz\/jp\/manual-api\/python\/#listItem","name":"XLPack API: Python \u4f7f\u7528\u4f8b"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.ktech.biz\/jp#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.ktech.biz\/jp\/manual-api\/python\/#listItem","position":3,"name":"XLPack API: Python \u4f7f\u7528\u4f8b","previousItem":{"@type":"ListItem","@id":"https:\/\/www.ktech.biz\/jp\/category\/manual-api\/#listItem","name":"\u30de\u30cb\u30e5\u30a2\u30eb(API)"}}]},{"@type":"Organization","@id":"https:\/\/www.ktech.biz\/jp\/#organization","name":"K \u30c6\u30af\u30ce\u30ed\u30b8\u30fc","description":"Excel\u3067\u672c\u683c\u7684\u306a\u6570\u5024\u8a08\u7b97\u304c\u3067\u304d\u308b\uff01","url":"https:\/\/www.ktech.biz\/jp\/"},{"@type":"Person","@id":"https:\/\/www.ktech.biz\/jp\/author\/wadmin\/#author","url":"https:\/\/www.ktech.biz\/jp\/author\/wadmin\/","name":"Administrator","image":{"@type":"ImageObject","@id":"https:\/\/www.ktech.biz\/jp\/manual-api\/python\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/ba306ded26254eaa30f5f7d0a9a3a1555a04b1f34069c8d4ebf8c40646da82c4?s=96&d=mm&r=g","width":96,"height":96,"caption":"Administrator"}},{"@type":"WebPage","@id":"https:\/\/www.ktech.biz\/jp\/manual-api\/python\/#webpage","url":"https:\/\/www.ktech.biz\/jp\/manual-api\/python\/","name":"XLPack API: Python \u4f7f\u7528\u4f8b | K \u30c6\u30af\u30ce\u30ed\u30b8\u30fc","description":"Python\u304b\u3089XLPack\u3092\u547c\u3073\u51fa\u3059 Python\u304b\u3089XLPack Lite\u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306b\u5fc5\u8981\u306a\u62e1\u5f35\u30e2\u30b8\u30e5","inLanguage":"ja","isPartOf":{"@id":"https:\/\/www.ktech.biz\/jp\/#website"},"breadcrumb":{"@id":"https:\/\/www.ktech.biz\/jp\/manual-api\/python\/#breadcrumblist"},"author":{"@id":"https:\/\/www.ktech.biz\/jp\/author\/wadmin\/#author"},"creator":{"@id":"https:\/\/www.ktech.biz\/jp\/author\/wadmin\/#author"},"datePublished":"2020-04-25T13:44:12+09:00","dateModified":"2020-08-09T15:10:48+09:00"},{"@type":"WebSite","@id":"https:\/\/www.ktech.biz\/jp\/#website","url":"https:\/\/www.ktech.biz\/jp\/","name":"K \u30c6\u30af\u30ce\u30ed\u30b8\u30fc","description":"Excel\u3067\u672c\u683c\u7684\u306a\u6570\u5024\u8a08\u7b97\u304c\u3067\u304d\u308b\uff01","inLanguage":"ja","publisher":{"@id":"https:\/\/www.ktech.biz\/jp\/#organization"}}]}},"aioseo_meta_data":{"post_id":"3042","title":null,"description":"","keywords":"","keyphrases":null,"primary_term":null,"canonical_url":"","og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 11:10:08","updated":"2022-09-16 03:22:25","seo_analyzer_scan_date":null},"_links":{"self":[{"href":"https:\/\/www.ktech.biz\/jp\/wp-json\/wp\/v2\/posts\/3042","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ktech.biz\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ktech.biz\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ktech.biz\/jp\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ktech.biz\/jp\/wp-json\/wp\/v2\/comments?post=3042"}],"version-history":[{"count":3,"href":"https:\/\/www.ktech.biz\/jp\/wp-json\/wp\/v2\/posts\/3042\/revisions"}],"predecessor-version":[{"id":3137,"href":"https:\/\/www.ktech.biz\/jp\/wp-json\/wp\/v2\/posts\/3042\/revisions\/3137"}],"wp:attachment":[{"href":"https:\/\/www.ktech.biz\/jp\/wp-json\/wp\/v2\/media?parent=3042"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ktech.biz\/jp\/wp-json\/wp\/v2\/categories?post=3042"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ktech.biz\/jp\/wp-json\/wp\/v2\/tags?post=3042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}