{"id":3033,"date":"2018-03-22T20:13:24","date_gmt":"2018-03-22T11:13:24","guid":{"rendered":"https:\/\/na-inet.jp\/weblog2\/?p=3033"},"modified":"2019-10-25T14:25:44","modified_gmt":"2019-10-25T05:25:44","slug":"%e3%81%9d%e3%82%82%e3%81%9d%e3%82%82%e3%80%8c%e5%a4%9a%e5%80%8d%e9%95%b7%e3%80%8d%e3%81%a3%e3%81%a6%e3%81%a9%e3%81%86%e3%81%84%e3%81%86%e6%84%8f%e5%91%b3%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/na-inet.jp\/weblog2\/2018\/03\/22\/%e3%81%9d%e3%82%82%e3%81%9d%e3%82%82%e3%80%8c%e5%a4%9a%e5%80%8d%e9%95%b7%e3%80%8d%e3%81%a3%e3%81%a6%e3%81%a9%e3%81%86%e3%81%84%e3%81%86%e6%84%8f%e5%91%b3%ef%bc%9f\/","title":{"rendered":"\u305d\u3082\u305d\u3082\u300c\u591a\u500d\u9577\u300d\u3063\u3066\u3069\u3046\u3044\u3046\u610f\u5473\uff1f"},"content":{"rendered":"<p>[ 2019-10-25\u8ffd\u8a18 ] \u3044\u3088\u3044\u3088\u300c<a href=\"https:\/\/www.morikita.co.jp\/books\/book\/3393\" target=\"_blank\" rel=\"noopener noreferrer\">\u591a\u500d\u9577\u7cbe\u5ea6\u6570\u5024\u8a08\u7b97\u300d\uff08\u68ee\u5317\u51fa\u7248\uff09<\/a>\u304c2019\u5e7411\u670822\u65e5\u306b\u767a\u58f2\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u90e8\u5206\u3082\u624b\u76f4\u3057\u3057\u305f\u3082\u306e\u304c\u53ce\u9332\u3055\u308c\u307e\u3059\u3093\u3067\u30fb\u30fb\u30fb(\u58f2\u308c\u305d\u3046\u3082\u306a\u3044\u306e\u3067)\u304a\u9ad8\u3044\u3067\u3059\u304c\u30fb\u30fb\u30fb\u3088\u308d\u3057\u304f\u3067\u3059\u3002<\/p>\n<p>\u7b2c1\u7ae0\u306e\u6700\u521d\u306e\u8a18\u8ff0\u304c\u307e\u3068\u307e\u3089\u3093\u306e\u3067\uff0c\u3056\u3063\u3068\u66f8\u304d\u51fa\u3057\u3066\u307f\u308b\u3002\u3053\u3093\u306a\u611f\u3058\u3067\u3069\u3046\u3063\u3059\u304b\u306d\uff1f\uff1eF\u3055\u3093<\/p>\n<p>&#8212;-<br \/>\n1.1 \u305d\u3082\u305d\u3082\u300c\u591a\u500d\u9577\u300d\u3063\u3066\u3069\u3046\u3044\u3046\u610f\u5473\uff1f<\/p>\n<p>\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u5185\u90e8\u306b\u304a\u3051\u308b\u30c7\u30fc\u30bf\u306f\u5168\u30662\u9032\u6570(binary number)\uff0c\u5373\u3061\uff0c0\u3082\u3057\u304f\u306f1\u306e\u4e26\u3073\u3067\u8868\u73fe\u3055\u308c\u308b\u300c\u6570\u5024\u300d(numerical value)\u3067\u3042\u308b\u3002\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3059\u308b\u30e1\u30e2\u30ea(memory)\u306e\u5927\u304d\u3055\u306f\u5236\u9650\u3055\u308c\u3066\u3044\u308b\u306e\u3067\uff0c\u5168\u3066\u306e\u6570\u5024\u306e\u9577\u3055\u306f\u6709\u9650\u3067\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002\u6a19\u6e96\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b\u6570\u5024\u306e\u5f62\u5f0f\uff08format\uff09\uff0c\u5373\u3061\u30c7\u30fc\u30bf\u578b(data type)\u306f\u898f\u5b9a\u3055\u308c\u3066\u304a\u308a\uff0c\u5927\u5225\u3057\u3066\u6574\u6570(integer)\u578b\u3068\u5b9f\u6570\u578b(real number)\u578b\u306b\u5206\u985e\u3055\u308c\u308b\u3002C\/C++\u306e\u6a19\u6e96\u7684\u306a\u6574\u6570\u578b\u3068\u5b9f\u6570\u578b\u306e\u5909\u6570\uff0c\u5373\u3061\uff0c\u6570\u5024\u3092\u683c\u7d0d\u3059\u308b\u305f\u3081\u306b\u78ba\u4fdd\u3055\u308c\u308b\u30e1\u30e2\u30ea\u9818\u57df\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u5ba3\u8a00\u3059\u308b\u30c7\u30fc\u30bf\u578b\u306f<\/p>\n<ul>\n<li>\u6574\u6570\u578b\n<ul>\n<li>\u7b26\u53f7\u4ed8\u304d\u6574\u6570\u578b(signed integer)\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>int\u578b<\/li>\n<li>long int\u578b<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u7b26\u53f7\u306a\u3057\u6574\u6570\u578b(unsigned integer)\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>unsigned int\u578b<\/li>\n<li>unsigned long int\u578b<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u5b9f\u6570\u578b\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>float\u578b<\/li>\n<li>double\u578b<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u3068\u306a\u308b\u3002\u73fe\u5728\u4e3b\u6d41\u306e64bit CPU\u3067\u306fint\u578b\uff0cunsigned int\u578b\uff0cfloat\u578b\u304c32bit\u9577\uff0clong int\u578b\uff0cunsigned long int\u578b, double\u578b\u304c64bit\u9577\u3067\u3042\u308b\u3002\u3053\u308c\u3089\u306e\u6a19\u6e96\u7684\u306a\u30c7\u30fc\u30bf\u578b\u306fCPU\u5185\u90e8\u306e\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u6f14\u7b97\u56de\u8def\u3092\u4f7f\u7528\u3057\uff0c1\u547d\u4ee4(instruction)\u3067\u306e\u9ad8\u901f\u306a\u6f14\u7b97\u51e6\u7406(arithmetic)\u304c\u53ef\u80fd\u3067\u3042\u308b\u3002<br \/>\n\u672c\u66f8\u3067\u306f\uff0c\u3053\u308c\u3089\u306e\u6a19\u6e96\u7684\u306a\u30c7\u30fc\u30bf\u578b\u3092\u8907\u6570\u7d44\u307f\u5408\u308f\u305b\uff0c64bit\u3088\u308a\u9577\u3044\u6570\u5024\u3092\u6271\u3046\u8a08\u7b97\u5168\u822c\u3092\u5e83\u7fa9\u306e\u591a\u500d\u9577(multiple precision)\u8a08\u7b97\u3068\u547c\u3076\u3053\u3068\u306b\u3059\u308b\u3002\u3082\u3063\u3068\u3082\u4e3b\u984c\u306f\u591a\u500d\u9577\u306e\u5b9f\u6570\u578b\u3092\u4f7f\u7528\u3059\u308b\u6570\u5024\u8a08\u7b97(numerical computation)\u306a\u306e\u3067\uff0c\u7279\u306b\u65ad\u3089\u306a\u3044\u9650\u308a\uff0cdouble\u578b\u3088\u308a\u9577\u3044\u5b9f\u6570\u578b\u3092\u6271\u3046\u6570\u5024\u8a08\u7b97\u3092\u591a\u500d\u9577\u8a08\u7b97\u3068\u547c\u3076\u3002\u3053\u308c\u3089\u306e\u591a\u500d\u9577\u8a08\u7b97\u306f\u6a19\u6e96\u7684\u306afloat\u578b\uff0cdouble\u578b\u3092\u4f7f\u7528\u3057\u305f\u6570\u5024\u8a08\u7b97\u306b\u6bd4\u3079\u3066\u591a\u5927\u306a\u8a08\u7b97\u6642\u9593\u3092\u8981\u3059\u308b\u306e\u304c\u666e\u901a\u3067\u3042\u308b\u3002<\/p>\n<p>\u672c\u66f8\u3067\u6271\u3046\u306e\u306f\u4e0b\u8a18\u306e\u591a\u500d\u9577\u6574\u6570\u578b\u3068\u591a\u500d\u9577\u6d6e\u52d5\u5c0f\u6570\u70b9\u578b\u3067\u3042\u308b\u3002<\/p>\n<ul>\n<li>\u591a\u500d\u9577\u6574\u6570\u578b(mpz_t, mpz_class)\u30fb\u30fb\u30fb\u6574\u6570\u578b\u3092\u53ef\u5909\u9577\u306e\u914d\u5217(\u56fa\u5b9a\u9577\u306b\u3059\u308b\u5834\u5408\u3082\u3042\u308b)\u306b\u3057\u3066\u9577\u3044\u6841\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b<\/li>\n<li>\u591a\u500d\u9577\u6d6e\u52d5\u5c0f\u6570\u70b9\u578b\n<ul>\n<li>\u591a\u6570\u6841\u65b9\u5f0f(mpf_t, mpf_class, mpfr_t, mpfr::mpreal)\u30fb\u30fb\u30fb\u56fa\u5b9a\u9577\u306e\u6574\u6570\u578b\u306e\u914d\u5217\u3092\u4eee\u6570\u90e8(\u5c0f\u6570\u90e8)\u3068\u3059\u308b<\/li>\n<li>\u30de\u30eb\u30c1\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u65b9\u5f0f(dd_real, qd_real)\u30fb\u30fb\u30fb\u56fa\u5b9a\u9577\u306e\u5b9f\u6570\u578b(\u6d6e\u52d5\u5c0f\u6570\u70b9\u578b)\u306e\u914d\u5217\u3092\u4e38\u3054\u3068\u5229\u7528\u3059\u308b<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u591a\u500d\u9577\u6709\u7406\u6570\u578b(mpq_t, mpq_class)\u3068\u591a\u500d\u9577\u8907\u7d20\u6570\u578b(mpc_t, complex)\u306b\u3064\u3044\u3066\u306f\uff0c\u524d\u8005\u306f\u5206\u5b50\u3068\u5206\u6bcd\u306b\u305d\u308c\u305e\u308c\u591a\u500d\u9577\u6574\u6570\u578b\u3092\uff0c\u5f8c\u8005\u306f\u5b9f\u6570\u90e8\u3068\u865a\u6570\u90e8\u306b\u305d\u308c\u305e\u308c\u591a\u500d\u9577\u6d6e\u52d5\u5c0f\u6570\u70b9\u578b\u3092\u4f7f\u7528\u3057\u3066\u5b9f\u88c5\u3055\u308c\u308b\u3002<\/p>\n<p>\u3068\u3053\u308d\u3067\uff0c\u672c\u66f8\u3067\u306f\u300c\u591a\u500d\u9577\u300d\u3092\u304b\u3088\u3046\u306b\u5b9a\u7fa9\u3059\u308b\u304c\uff0c\u8907\u6570\u306e\u30c7\u30fc\u30bf\u578b\u3092\u6df7\u5408\u3057\u3066\u8a08\u7b97\u3059\u308b\u5834\u5408\u3082multiple(\u8907\u6570\uff09 precision\uff08\u7cbe\u5ea6\uff09\u3068\u547c\u79f0\u3057\u3066\u3044\u308b\u30b1\u30fc\u30b9\u3082\u3042\u308b\u3002\u5f8c\u8ff0\u3059\u308b\u3088\u3046\u306b\uff0c\u73fe\u5728\u306e\u8a08\u7b97\u74b0\u5883\u306f\u6a19\u6e96\u30c7\u30fc\u30bf\u578b\u6f14\u7b97\u901f\u5ea6\u306e\u9ad8\u901f\u5316\u304c\u9650\u754c\u306b\u9054\u3057\u3066\u304a\u308a\uff0c\u8a08\u7b97\u52b9\u7387\u3092\u4e0a\u3052\u308b\u305f\u3081\u306b\uff0c\u4f8b\u3048\u3070\uff0c\u9ad8\u901f\u306afloat\u578b\u3068\u6bd4\u8f03\u7684\u4f4e\u901f\u306adouble\u578b\u3092\u6df7\u5408\u3055\u305b\u308b\u65b9\u6cd5\u3082\u76db\u3093\u3067\u3042\u308b\u3002\u672c\u66f8\u3067\u53d6\u308a\u4e0a\u3052\u308b\u9577\u3044\u5b9f\u6570\u578b\u3067\u3082\uff0c\u7cbe\u5ea6\u306f\u69d8\u3005\u306a\u3082\u306e\u3092\u6df7\u5728\u3055\u305b\u3066\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u524d\u63d0\u3068\u306a\u3063\u3066\u304a\u308a\uff0c\u305d\u306e\u610f\u5473\u3067\u306f\u300c\u3088\u308a\u9577\u3044\u7cbe\u5ea6\u306e\u5b9f\u6570\u578b\u3092\u53d6\u308a\u6df7\u305c\u3067\u4f7f\u7528\u3059\u308b\u6570\u5024\u8a08\u7b97\u300d\u3068\u3044\u3046\u610f\u5473\u5408\u3044\u3082\u300c\u591a\u500d\u9577\u8a08\u7b97\u300d\u306b\u8fbc\u3081\u3089\u308c\u3066\u3044\u308b\u3068\u89e3\u91c8\u3057\u3066\u3082\u3089\u3063\u3066\u3082\u69cb\u308f\u306a\u3044\u3002<\/p>\n<p>\u3057\u304b\u3057\uff0c\u3053\u308c\u3067\u306f\u300c\u3088\u308a\u9577\u3044\u7cbe\u5ea6\u6841\u6570\u300d\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u306f\u5224\u7136\u3068\u3057\u306a\u3044\u3053\u3068\u3082\u3042\u308b\u306e\u3067\uff0c\u305d\u3053\u3092\u5f37\u8abf\u3057\u305f\u3044\u5411\u304d\u306b\u306f\uff0c\u53ef\u5909\u7cbe\u5ea6(variable precision)\u8a08\u7b97\uff0c\u4efb\u610f\u7cbe\u5ea6(arbitrary precision)\u8a08\u7b97\u3068\u3044\u3046\u8a00\u8449\u3092\u4f7f\u7528\u3059\u308b\u3068\u826f\u3044\u3002\u7121\u9650\u7cbe\u5ea6(infinite precision)\u8a08\u7b97\u3068\u3044\u3046\u8a00\u8449\u3092\u4f7f\u3046\u30b1\u30fc\u30b9\u3082\u3042\u3063\u305f\u304c\uff0c\u7121\u9650\u306e\u7cbe\u5ea6\u3092\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u3067\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u4ee5\u4e0a\uff0c\u904e\u5927\u8868\u73fe\u3063\u307d\u304f\u3066\u8457\u8005\u500b\u4eba\u3068\u3057\u3066\u306f\u597d\u304d\u306b\u306a\u308c\u305a\uff0c\u4f7f\u7528\u3057\u305f\u3053\u3068\u306f\u306a\u3044\u3002\u3082\u3057\u898b\u304b\u3051\u305f\u6642\u306b\u306f\u672c\u66f8\u3067\u6271\u3046\u591a\u500d\u9577\u8a08\u7b97\u3068\u540c\u4e00\u306e\u3082\u306e\u3068\u8003\u3048\u3066\u3088\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ 2019-10-25\u8ffd\u8a18 ] \u3044\u3088\u3044\u3088\u300c\u591a\u500d\u9577\u7cbe\u5ea6\u6570\u5024\u8a08\u7b97\u300d\uff08\u68ee\u5317\u51fa\u7248\uff09\u304c2019\u5e7411\u670822\u65e5\u306b\u767a\u58f2\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u90e8\u5206\u3082\u624b\u76f4\u3057\u3057\u305f\u3082\u306e\u304c\u53ce\u9332\u3055\u308c\u307e\u3059\u3093\u3067\u30fb\u30fb\u30fb(\u58f2\u308c\u305d\u3046\u3082\u306a\u3044\u306e\u3067)\u304a\u9ad8\u3044\u3067\u3059\u304c\u30fb\u30fb\u30fb\u3088\u308d\u3057\u304f\u3067\u3059\u3002 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/na-inet.jp\/weblog2\/2018\/03\/22\/%e3%81%9d%e3%82%82%e3%81%9d%e3%82%82%e3%80%8c%e5%a4%9a%e5%80%8d%e9%95%b7%e3%80%8d%e3%81%a3%e3%81%a6%e3%81%a9%e3%81%86%e3%81%84%e3%81%86%e6%84%8f%e5%91%b3%ef%bc%9f\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;\u305d\u3082\u305d\u3082\u300c\u591a\u500d\u9577\u300d\u3063\u3066\u3069\u3046\u3044\u3046\u610f\u5473\uff1f&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[12,7],"tags":[],"class_list":["post-3033","post","type-post","status-publish","format-standard","hentry","category-mpna","category-7"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/na-inet.jp\/weblog2\/wp-json\/wp\/v2\/posts\/3033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/na-inet.jp\/weblog2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/na-inet.jp\/weblog2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/na-inet.jp\/weblog2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/na-inet.jp\/weblog2\/wp-json\/wp\/v2\/comments?post=3033"}],"version-history":[{"count":8,"href":"https:\/\/na-inet.jp\/weblog2\/wp-json\/wp\/v2\/posts\/3033\/revisions"}],"predecessor-version":[{"id":3380,"href":"https:\/\/na-inet.jp\/weblog2\/wp-json\/wp\/v2\/posts\/3033\/revisions\/3380"}],"wp:attachment":[{"href":"https:\/\/na-inet.jp\/weblog2\/wp-json\/wp\/v2\/media?parent=3033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/na-inet.jp\/weblog2\/wp-json\/wp\/v2\/categories?post=3033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/na-inet.jp\/weblog2\/wp-json\/wp\/v2\/tags?post=3033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}