{"id":1792,"date":"2020-01-07T17:29:10","date_gmt":"2020-01-07T08:29:10","guid":{"rendered":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/?page_id=1792"},"modified":"2026-01-20T09:31:48","modified_gmt":"2026-01-20T00:31:48","slug":"%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92%e7%ac%ac%ef%bc%99%e5%9b%9e","status":"publish","type":"page","link":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92%e7%ac%ac%ef%bc%99%e5%9b%9e\/","title":{"rendered":"\u8a08\u7b97\u6570\u5b66\u6f14\u7fd2\u7b2c\uff19\u56de"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u30b3\u30f3\u30c6\u30f3\u30c4<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a085a7b494af\" 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-6a085a7b494af\" 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-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92%e7%ac%ac%ef%bc%99%e5%9b%9e\/#gnuplot%e3%81%a7%e3%81%ae%e3%82%b0%e3%83%a9%e3%83%95%e3%81%ae%e6%8f%8f%e7%94%bb\" >gnuplot\u3067\u306e\u30b0\u30e9\u30d5\u306e\u63cf\u753b<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92%e7%ac%ac%ef%bc%99%e5%9b%9e\/#%e4%bb%8a%e6%97%a5%e3%81%ae%e6%bc%94%e7%bf%92\" >\u4eca\u65e5\u306e\u6f14\u7fd2<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92%e7%ac%ac%ef%bc%99%e5%9b%9e\/#%e4%bb%8a%e6%97%a5%e3%81%ae%e7%9b%ae%e6%a8%99\" >\u4eca\u65e5\u306e\u76ee\u6a19<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92%e7%ac%ac%ef%bc%99%e5%9b%9e\/#gnuplot_%e5%85%a5%e9%96%80\" >gnuplot \u5165\u9580<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92%e7%ac%ac%ef%bc%99%e5%9b%9e\/#%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%86%85%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e3%81%ae%e6%8f%8f%e7%94%bb%ef%bc%88%e6%96%b0%e3%81%97%e3%81%84%e5%86%85%e5%ae%b9%ef%bc%89\" >\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u30c7\u30fc\u30bf\u306e\u63cf\u753b\uff08\u65b0\u3057\u3044\u5185\u5bb9\uff09<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92%e7%ac%ac%ef%bc%99%e5%9b%9e\/#y_sinx_%e3%81%ae%e3%82%b0%e3%83%a9%e3%83%95%e3%81%ae%e6%8f%8f%e7%94%bb\" >y = sin(x) \u306e\u30b0\u30e9\u30d5\u306e\u63cf\u753b<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92%e7%ac%ac%ef%bc%99%e5%9b%9e\/#%e8%a3%9c%e8%b6%b3%ef%bc%91%e3%80%80%e5%ae%9a%e6%95%b0%ef%bc%88define_%e6%96%87%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%ef%bc%89\" >\u88dc\u8db3\uff11\u3000\u5b9a\u6570\uff08#define \u6587\u306e\u4f7f\u3044\u65b9\uff09<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92%e7%ac%ac%ef%bc%99%e5%9b%9e\/#%e8%a3%9c%e8%b6%b3%ef%bc%92%e3%80%80%e5%be%a9%e7%bf%92%ef%bc%9a%e6%95%b0%e5%ad%a6%e9%96%a2%e6%95%b0%ef%bc%88%e4%b8%89%e8%a7%92%e9%96%a2%e6%95%b0%e7%ad%89%ef%bc%89%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\" >\u88dc\u8db3\uff12\u3000\u5fa9\u7fd2\uff1a\u6570\u5b66\u95a2\u6570\uff08\u4e09\u89d2\u95a2\u6570\u7b49\uff09\u306e\u4f7f\u3044\u65b9<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92%e7%ac%ac%ef%bc%99%e5%9b%9e\/#%ef%bc%88%e9%87%8d%e8%a6%81%ef%bc%89%e3%83%87%e3%83%bc%e3%82%bf%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e4%bd%9c%e6%88%90%e3%83%bb%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%ef%bc%88%e6%9c%ac%e9%a1%8c%e3%81%ab%e6%88%bb%e3%82%8a%e3%81%be%e3%81%99%ef%bc%89\" >\uff08\u91cd\u8981\uff09\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u30fb\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\uff08\u672c\u984c\u306b\u623b\u308a\u307e\u3059\uff09<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92%e7%ac%ac%ef%bc%99%e5%9b%9e\/#%e8%aa%b2%e9%a1%8c%ef%bc%90\" >\u8ab2\u984c\uff10<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92%e7%ac%ac%ef%bc%99%e5%9b%9e\/#%e8%aa%b2%e9%a1%8c%ef%bc%91\" >\u8ab2\u984c\uff11<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92%e7%ac%ac%ef%bc%99%e5%9b%9e\/#%e8%aa%b2%e9%a1%8c%ef%bc%92\" >\u8ab2\u984c\uff12<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92%e7%ac%ac%ef%bc%99%e5%9b%9e\/#%e8%aa%b2%e9%a1%8c%ef%bc%92%ef%bc%95\" >\u8ab2\u984c\uff12.\uff15<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92%e7%ac%ac%ef%bc%99%e5%9b%9e\/#%e8%aa%b2%e9%a1%8c%ef%bc%93\" >\u8ab2\u984c\uff13<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92%e7%ac%ac%ef%bc%99%e5%9b%9e\/#%e8%aa%b2%e9%a1%8c%ef%bc%94\" >\u8ab2\u984c\uff14<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92%e7%ac%ac%ef%bc%99%e5%9b%9e\/#%e3%83%87%e3%83%bc%e3%82%bf%e3%81%ab%e7%a9%ba%e7%99%bd%e8%a1%8c%e3%82%92%e4%bd%9c%e3%82%8b%e4%be%8b\" >\u30c7\u30fc\u30bf\u306b\u7a7a\u767d\u884c\u3092\u4f5c\u308b\u4f8b<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92%e7%ac%ac%ef%bc%99%e5%9b%9e\/#%e4%bb%8a%e6%97%a5%e5%ad%a6%e3%82%93%e3%81%a0%e4%ba%8b\" >\u4eca\u65e5\u5b66\u3093\u3060\u4e8b<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"gnuplot%e3%81%a7%e3%81%ae%e3%82%b0%e3%83%a9%e3%83%95%e3%81%ae%e6%8f%8f%e7%94%bb\"><\/span>gnuplot\u3067\u306e\u30b0\u30e9\u30d5\u306e\u63cf\u753b<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<hr \/>\n<p>\u4eca\u65e5\u304b\u3089gnuplot\u3092\u4f7f\u3044\u307e\u3059\u304c\u3001OS\u554f\u308f\u305a\u6a19\u6e96\u3067\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u306a\u3044\u4eba\u306f<a title=\"\u8a08\u7b97\u6570\u5b66\u6f14\u7fd2\u7b2c\uff10\u56de\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92%e7%ac%ac%ef%bc%90%e5%9b%9e\/\" target=\"_blank\" rel=\"noopener\">\u8a08\u7b97\u6570\u5b66\u6f14\u7fd2\u7b2c\uff10\u56de<\/a>\u3092\u53c2\u8003\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002\uff08\u30e1\u30c7\u30a3\u30a2\u30bb\u30f3\u30bf\u30fc\u306e\u7aef\u672b\u306b\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u3067\u3059\u3002\uff09<\/p>\n<hr \/>\n<h2><span class=\"ez-toc-section\" id=\"%e4%bb%8a%e6%97%a5%e3%81%ae%e6%bc%94%e7%bf%92\"><\/span>\u4eca\u65e5\u306e\u6f14\u7fd2<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"font-weight: 400;\">\u4eca\u65e5\u306f\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u6f14\u7fd2\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<ul style=\"font-weight: 400;\">\n<li>C\u30d7\u30ed\u30b0\u30e9\u30e0\u3068gnuplot\u3092\u4f7f\u3063\u305f\u3001\u30b0\u30e9\u30d5\u3001\u56f3\u5f62\u306e\u63cf\u5199<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"%e4%bb%8a%e6%97%a5%e3%81%ae%e7%9b%ae%e6%a8%99\"><\/span>\u4eca\u65e5\u306e\u76ee\u6a19<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"font-weight: 400;\">gnuplot \u306e\u4f7f\u3044\u65b9\u306e\u57fa\u672c\u3092\u8eab\u306b\u3064\u3051\u308b\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"gnuplot_%e5%85%a5%e9%96%80\"><\/span>gnuplot \u5165\u9580<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>&nbsp;<\/p>\n<p>\u4eca\u56de\u306f\u3001\u307e\u305agnuplot\u3068\u547c\u3070\u308c\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u7528\u3044\u3066\u3001\u95a2\u6570\u3084\u30c7\u30fc\u30bf\u306e\u53ef\u8996\u5316\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\n\u3053\u306egnuplot\u306f\u3001\u624b\u8efd\u306b\u4f7f\u3048\u308b\u4e0a\u306b\u69d8\u3005\u306a\u4fbf\u5229\u306a\u6a5f\u80fd\u304c\u3042\u308b\u305f\u3081\u3001\u5b66\u8853\u8ad6\u6587\u7b49\u306b\u63b2\u8f09\u3055\u308c\u308b\u30b0\u30e9\u30d5\u7b49\u306e\u4f5c\u6210\u306b\u3082\u3001\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002\u4eca\u56de\u306f\u3053\u306e gnuplot \u3092\u7528\u3044\u3066\u3001\u7c21\u5358\u306a\u30b0\u30e9\u30d5\u3084\u56f3\u5f62\u306e\u63cf\u753b\u3092\u5b9f\u8df5\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u5e7e\u3064\u304b\u306e\u95a2\u6570\u3092gnuplot\u3067\u63cf\u753b\u3057\u3066\u307f\u307e\u3059\u3002\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u3001<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">gnuplot<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u6253\u3061\u8fbc\u307f\u3001\u6539\u884c\u30ad\u30fc\u3092\u62bc\u3059\u3053\u3068\u3067 gnuplot \u3092\u8d77\u52d5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u8d77\u52d5\u3059\u308b\u3068\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u306f gnuplot \u306e\u3082\u306e\u3068\u306a\u308a\u3001gnuplot \u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3067\u304d\u308b\u72b6\u614b\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u305d\u3053\u3067\u3001<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">plot x*x - 2<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u30b0\u30e9\u30d5\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2957\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig1.png\" alt=\"\" width=\"710\" height=\"649\" srcset=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig1.png 710w, https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig1-300x274.png 300w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/><br \/>\nx \u306e\u7bc4\u56f2\u306f\u81ea\u52d5\u7684\u306b\u6c7a\u3081\u3089\u308c\u307e\u3059\u304c\u3001\u3053\u3061\u3089\u3067\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<br \/>\nx<sup>2<\/sup>\u306f x**2 \u3068\u8868\u8a18\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">plot [0:2] x**2 - 2<\/pre>\n<p style=\"font-weight: 400;\">gnuplot \u306f\u3001<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">quit<\/pre>\n<p style=\"font-weight: 400;\">\u3067\u7d42\u4e86\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2958\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig2.png\" alt=\"\" width=\"754\" height=\"693\" srcset=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig2.png 754w, https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig2-300x276.png 300w\" sizes=\"auto, (max-width: 754px) 100vw, 754px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p style=\"font-weight: 400;\">\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306a\u3082\u306e\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">plot [-6:6][-1.5:1.5] sin(x)\r\nplot [-6:6][-1.5:1.5] cos(x)\r\nplot x**3 - x**2 + 5<\/pre>\n<p style=\"font-weight: 400;\">\u30b0\u30e9\u30d5\u306e\u6a2a\u8ef8(x)\u3001\u7e26\u8ef8(y)\u306e\u8868\u793a\u7bc4\u56f2\u306f<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">plot [(min_x):(max_x)][(min_y):(max_y)]\u3000F(x)<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u3057\u3066\u3001min_x\u3001 max_x\u3001min_y\u3001max_y \u3092\u4e0e\u3048\u308b\u3053\u3068\u3067\u6c7a\u308a\u307e\u3059\u3002<br \/>\n\u7e26\u8ef8(y)\u306e\u307f\u7bc4\u56f2\u3092\u4e0e\u3048\u305f\u3044\u5834\u5408\u306f<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">plot [][(min_y):(max_y)]\u3000F(x)<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u3059\u308b\u3068\u51fa\u6765\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%86%85%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e3%81%ae%e6%8f%8f%e7%94%bb%ef%bc%88%e6%96%b0%e3%81%97%e3%81%84%e5%86%85%e5%ae%b9%ef%bc%89\"><\/span>\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u30c7\u30fc\u30bf\u306e\u63cf\u753b\uff08\u65b0\u3057\u3044\u5185\u5bb9\uff09<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"font-weight: 400;\">\u6b21\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u8fbc\u307e\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u304b\u3089\u30b0\u30e9\u30d5\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u307e\u305adata-ex1.data\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u4e2d\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5f62\u3067\u6570\u5024\u3092\u66f8\u304d\u8fbc\u3093\u3067\u4e0b\u3055\u3044\u3002<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>data-ex1.data<\/strong><\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">2.0 1.0 -3.0\r\n-2.0 1.0 1.0\r\n-2.0 -1.0 2.0\r\n2.0 -1.0 -3.5<\/pre>\n<p style=\"font-weight: 400;\">\uff08\u6ce8\u610f\uff09\u6a2a\u306b\u4e26\u3076\u6570\u5024\u306e\u9593\u306b\u306f\u3001\u5fc5\u305a\u30b9\u30da\u30fc\u30b9\u3092\u5165\u308c\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p style=\"font-weight: 400;\">\u6b21\u306b\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u3001gnuplot\u3068\u6253\u3061\u8fbc\u307f gnuplot \u3092\u8d77\u52d5\u3057\u3001<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">plot [-4.0:4.0][-4.0:4.0] \"data-ex1.data\"<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u3059\u308b\u3068\uff08\u6539\u884c\u30ad\u30fc\u3092\u62bc\u3059\u3068\uff09\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001(2,1),(-2,1),(-2,-1),(2,-1)\u306b\uff14\u3064\u70b9\u304c\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<br \/>\n\u3053\u3053\u3067\u306f\u898b\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u306b\u3001\u6a2a\u8ef8\u3001\u7e26\u8ef8\u306e\u7bc4\u56f2\u3092-4\uff5e4\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p style=\"font-weight: 400;\">gnuplot\u306f\u3001\u6a2a\u306b\u4e26\u3076\u6570\u5b57\u306e\u7d44\u3092\u3042\u308b\u4e00\u70b9\u306e\u5ea7\u6a19\u3068\u3057\u3001\u8868\u793a\u3057\u307e\u3059\u3002<br \/>\n\u3053\u306e\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u3001\uff14\u3064\u306e\u70b9\u306e\u5ea7\u6a19\u304c\u8a18\u8ff0\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u4f55\u3082\u6307\u793a\u3057\u306a\u3051\u308c\u3070\u3001\u6a2a\u8ef8\uff08x\u8ef8\uff09\u306b\u4e00\u5217\u76ee\u3001\u7e26\u8ef8\uff08y\u8ef8\uff09\u306b\uff12\u5217\u76ee\u304c\u7528\u3044\u3089\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2959\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig3.png\" alt=\"\" width=\"754\" height=\"693\" srcset=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig3.png 754w, https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig3-300x276.png 300w\" sizes=\"auto, (max-width: 754px) 100vw, 754px\" \/><\/p>\n<p style=\"font-weight: 400;\">\u3067\u306f\u3053\u3053\u3067\u3001<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">plot [-4.0:4.0][-4.0:4.0] \"data-ex1.data\" using 2:1<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u3057\u307e\u3059\u3002\u3059\u308b\u3068\u5148\u7a0b\u3068\u7e26\u3068\u6a2a\u304c\u5165\u308c\u66ff\u308f\u308a\u307e\u3059\u3002<\/p>\n<p style=\"font-weight: 400;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2960\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig4.png\" alt=\"\" width=\"754\" height=\"693\" srcset=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig4.png 754w, https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig4-300x276.png 300w\" sizes=\"auto, (max-width: 754px) 100vw, 754px\" \/>\u307e\u305f<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">plot [-4.0:4.0][-4.0:4.0] \"data-ex1.data\" using 2:3<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u3057\u307e\u3059\u3068(1,-3),(1,1),(-1,-2),(-1,-3.5)\u306e\uff14\u70b9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\uff08\u4e0b\u56f3\uff09\u3002<br \/>\n\u3053\u306e\u5834\u5408\u3001\u6a2a\u8ef8\u306b 2 \u5217\u76ee\u3001\u7e26\u8ef8\u306b 3 \u5217\u76ee \u306e\u5024\u304c\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u300cusing a:b\u300d\u3068\u3044\u3046\u306e\u304c\u300c\u6a2a\u8ef8\u306b a \u5217\u76ee\u3001\u7e26\u8ef8\u306b b \u5217\u76ee\u3092\u7528\u3044\u308b\u300d\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2961\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig5.png\" alt=\"\" width=\"754\" height=\"693\" srcset=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig5.png 754w, https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig5-300x276.png 300w\" sizes=\"auto, (max-width: 754px) 100vw, 754px\" \/><\/p>\n<p style=\"font-weight: 400;\">\u6b21\u306b\u7dda\u3092\u63cf\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">plot [-4.0:4.0][-4.0:4.0] \"data-ex1.data\" with lines<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u3059\u308b\u3068\u3001(2,1),(-2,1),(-2,-1),(2,-1)\u304c\u76f4\u7dda\u3067\u7d50\u3070\u308c\u307e\u3059\u3002<br \/>\n\u3053\u306e\u300cwith lines\u300d\u306f\u3001\u70b9\u3092\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u9806\u306b\u76f4\u7dda\u3067\u7d50\u3076\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2962\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig6.png\" alt=\"\" width=\"710\" height=\"649\" srcset=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig6.png 710w, https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig6-300x274.png 300w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/><\/p>\n<p style=\"font-weight: 400;\">\u307e\u305f<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">plot [-4.0:4.0][-4.0:4.0] \"data-ex1.data\" with linespoints<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u3059\u308b\u3068\u3001\uff14\u3064\u306e\u70b9\u3068\u305d\u308c\u3092\u3064\u306a\u3050\u76f4\u7dda\u304c\u63cf\u304b\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2963\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig7.png\" alt=\"\" width=\"754\" height=\"693\" srcset=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig7.png 754w, https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig7-300x276.png 300w\" sizes=\"auto, (max-width: 754px) 100vw, 754px\" \/><\/p>\n<p style=\"font-weight: 400;\">\u4eca\u5ea6\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4e00\u884c\u30b9\u30da\u30fc\u30b9\u3092\u5165\u308c\u307e\u3059\u3002<\/p>\n<p style=\"font-weight: 400;\">&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<br \/>\n2.0 1.0 -3.0<br \/>\n-2.0 1.0 1.0<\/p>\n<p>-2.0 -1.0 2.0<br \/>\n2.0 -1.0 -3.5<br \/>\n&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<\/p>\n<p style=\"font-weight: 400;\">\u540c\u3058\u3088\u3046\u306b gnuplot \u3092\u8d77\u52d5\u3057\u3001<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">plot [-4.0:4.0][-4.0:4.0] \"data-ex1.data\" with lines<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u304b\uff08\u4e0b\u56f3\uff09<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">plot \"data-ex1.data\" using 3:1 with lines<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u3059\u308b\u3068\u4eca\u5ea6\u306f\u3001\uff12\u672c\u306e\u76f4\u7dda\u304c\u73fe\u308c\u307e\u3059\u3002<br \/>\n\u3053\u306e\u3088\u3046\u306b\u884c\u3092\u7a7a\u3051\u308b\u3053\u3068\u3067\u3001\u8907\u6570\u306e\u56f3\u5f62\u3092\u63cf\u753b\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2964\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig8.png\" alt=\"\" width=\"754\" height=\"693\" srcset=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig8.png 754w, https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig8-300x276.png 300w\" sizes=\"auto, (max-width: 754px) 100vw, 754px\" \/><\/p>\n<p style=\"font-weight: 400;\">\u63cf\u753b\u306e\u30b3\u30de\u30f3\u30c9\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3068\u3001(\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u4e2d\u306e a \u5217\u76ee\u3092x \u5ea7\u6a19\uff08\u6a2a\u8ef8\uff09\u3001 b \u5217\u3092 y \u5ea7\u6a19\uff08\u7e26\u8ef8\uff09\u3068\u3057\u3066\u3001\u305d\u308c\u305e\u308c min_x \uff5e max_x\u3001min_y \uff5e max_y \u306e\u7bc4\u56f2\u3067\u7dda\u63cf\u753b\uff08\u70b9\u63cf\u753b\uff09\u3055\u305b\u305f\u3044\u3068\u304d\uff09<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">plot [(min_x):(max_x)][(min_y):(max_y)] \"\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u540d\" using a:b with lines (points)<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u3044\u3046\u9806\u756a\u3067\u6307\u5b9a\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p style=\"font-weight: 400;\">\uff08\u53c2\u8003\u307e\u3067\u306b\uff09<\/p>\n<p style=\"font-weight: 400;\">\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u3084\u95a2\u6570\u306e\u30b0\u30e9\u30d5\u3092\u540c\u6642\u306b\u8868\u793a\u3055\u305b\u305f\u3044\u5834\u5408\u306f\u3001<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">p [-4.0:4.0][-4.0:4.0] x**2 - 2, 0, \"data-ex1.data\" w lp<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u3044\u3046\u3075\u3046\u306b\u30ab\u30f3\u30de\u3067\u533a\u5207\u3063\u3066\u4e26\u3079\u307e\u3059\u3002<\/p>\n<p style=\"font-weight: 400;\">\u3061\u306a\u307f\u306b\u3001plot \u306f p\u3001using\u306fu\u3001with lines \u306f w l\u3001with linespoints \u306f w lp \u3068\u7565\u305b\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2965\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig9.png\" alt=\"\" width=\"710\" height=\"649\" srcset=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig9.png 710w, https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig9-300x274.png 300w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"y_sinx_%e3%81%ae%e3%82%b0%e3%83%a9%e3%83%95%e3%81%ae%e6%8f%8f%e7%94%bb\"><\/span>y = sin(x) \u306e\u30b0\u30e9\u30d5\u306e\u63cf\u753b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"font-weight: 400;\">\u3053\u308c\u304b\u3089\u3001gnuplot \u3092\u4f7f\u3063\u3066 y = sin(x) \u306e\u30b0\u30e9\u30d5\u3092\u63cf\u304d\u307e\u3059\u3002<br \/>\n\u3082\u3061\u308d\u3093\u3001gnuplot \u3067\u306f\u3001<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">plot sin(x)<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u3059\u308c\u3070 y = sin(x) \u306e\u30b0\u30e9\u30d5\u304c\u5f97\u3089\u308c\u308b\u306e\u3067\u3059\u304c\u3001gnuplot \u304c\u3069\u306e\u3088\u3046\u306b\u3057\u3066\u305d\u308c\u3092\u63cf\u3044\u3066\u3044\u308b\u304b\u308f\u304b\u308a\u307e\u305b\u3093\u3002<br \/>\n\u305d\u3053\u3067\u5c11\u3005\u9060\u56de\u308a\u3092\u3057\u307e\u3059\u3002<\/p>\n<p style=\"font-weight: 400;\">\u5b9f\u969b\u306b\u306f y = sin(x) \u306e\u30b0\u30e9\u30d5\u306f<span style=\"color: #0000ff;\"><strong>\u6ed1\u3089\u304b\u306a\u66f2\u7dda<\/strong><\/span>\u3067\u3059\u304c\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u3067\u306f\u305d\u306e\u3088\u3046\u306a\u6ed1\u3089\u304b\u306a\u66f2\u7dda\u3092\u76f4\u63a5\u306f\u6271\u3048\u307e\u305b\u3093\u306e\u3067<span style=\"color: #0000ff;\"><strong>\u6298\u308c\u7dda<\/strong><\/span>\u3067\u8fd1\u4f3c\u3057\u3066\u63cf\u753b\u3057\u307e\u3059\u3002<br \/>\n\u3064\u307e\u308a\u3001\u5909\u6570 x \u306f\u3001\u5b9f\u969b\u306b\u306f\u9023\u7d9a\u7684\u306b\u5909\u5316\u3059\u308b\u3082\u306e\u3067\u3059\u304c\u3001<span style=\"color: #0000ff;\"><strong>\u3068\u3073\u3068\u3073\u306e\u5024\uff08\u96e2\u6563\u5024\uff09<\/strong><\/span>\u3092\u4f7f\u3044\u307e\u3059\u3002\uff08<a href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/\u6388\u696d\u8cc7\u6599\/\u8a08\u7b97\u6570\u5b66\u6f14\u7fd2\/\u8a08\u7b97\u6570\u5b66\u6f14\u7fd2\u7b2c\uff16\u56de\/\">\u5b9a\u7a4d\u5206\u306e\u30d7\u30ed\u30b0\u30e9\u30e0<\/a>\u3092\u601d\u3044\u51fa\u3057\u307e\u3057\u3087\u3046\u3002\uff09<br \/>\n<span style=\"color: #ff0000;\">\u5f8c\u306e\u4f8b\u3067\u898b\u308b\u3088\u3046\u306b\u3001\u3068\u3073\u3068\u3073\u3068\u306f\u3044\u3048\u3001\u5341\u5206\u306b\u7d30\u304b\u304f\u53d6\u308c\u3070\u3001\u6298\u308c\u7dda\u3067\u66f2\u7dda\u3092\u3046\u307e\u304f\u8fd1\u4f3c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-681\" src=\"http:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2020\/01\/image014.png\" alt=\"\" width=\"532\" height=\"197\" \/><\/p>\n<p style=\"font-weight: 400;\">\u56f3\u306e\u3088\u3046\u306b [0, L] \u533a\u9593\u3092 N-1\u3000\u7b49\u5206\u3057\u3066\u3001\u305d\u306e\u7b49\u5206\u3057\u305f\u5c0f\u533a\u9593\u306e\u5e45\u3092 dx \u3068\u3057\u307e\u3059\u3002<br \/>\nN-1 \u7b49\u5206\u3059\u308b\u3068\u56f3\u306e\u3088\u3046\u306b N \u500b\u306e\u533a\u5207\u308a\u304c\u73fe\u308c\u307e\u3059\u304c\u3001\u305d\u308c\u3089\u306b 0,1, &#8230;., i, &#8230;., N-1 \u3068\u756a\u53f7\u3092\u3064\u3051\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001 N\u3092<span style=\"color: #0000ff;\"><strong>\u5206\u5272\u6570<\/strong><\/span>\u3001dx\u3092<span style=\"color: #0000ff;\"><strong>\u5206\u5272\u5e45<\/strong><\/span>\u3068\u547c\u3073\u307e\u3059\u3002\u3053\u306e\u3068\u304d\u3001<\/p>\n<p style=\"font-weight: 400;\">Xi = i*dx<\/p>\n<p style=\"font-weight: 400;\">\u306e\u90e8\u5206\u306b\u3064\u3044\u3066\u305d\u308c\u305e\u308c y = sin(Xi) \u3092\u8a08\u7b97\u3057\u3001\u305d\u308c\u3089\u3092\u6298\u308c\u7dda\u3067\u7d50\u3076\u3053\u3068\u3092\u8003\u3048\u307e\u3059\u3002<br \/>\nC\u8a00\u8a9e\u98a8\u306b\u66f8\u3051\u3070<\/p>\n<p style=\"font-weight: 400;\">X[i] = i*dx;<br \/>\nY[i] = sin(X[i]);<\/p>\n<p style=\"font-weight: 400;\">\u3092\u305d\u308c\u305e\u308c\u6c42\u3081\u3001(X[0], Y[0]), (X[1],Y[1]), &#8230;., (X[N-1], Y[N-1]) \u3092\u7d50\u3076\u6298\u308c\u7dda\u3092\u63cf\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u3059\u308b\u3068\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\uff08\u4e0a\u8a18\u306e\u8aac\u660e\u306b\u3042\u308f\u305b\u308b\u305f\u3081\u306b\u304b\u306a\u308a\u7121\u99c4\u306a\u3053\u3068\u3092\u3057\u3066\u3044\u307e\u3059\u3002\uff09<br \/>\n\u30d5\u30a1\u30a4\u30eb\u540d\u3092 gnup-1.c \u3068\u3057\u3066\u6253\u3061\u8fbc\u307f\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u5b9f\u884c\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p style=\"font-weight: 400;\">\u6570\u5b66\u95a2\u6570\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u3068\u304d\u306b\u306f<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">gcc gnup-1.c -o gnup-1 -lm<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u3044\u3046\u3075\u3046\u306b\u3001-lm \u3092\u4ed8\u3051\u52a0\u3048\u3066\u4e0b\u3055\u3044\u3002\uff08\u4e0b\u306e\u88dc\u8db3\uff12\u3092\u53c2\u7167\uff09<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>gnup-1.c<\/strong><\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">#include &lt;stdio.h&gt;\r\n\/* \u6b21\u306e\u6587\u306f\u6570\u5b66\u95a2\u6570\u3092\u4f7f\u3046\u5834\u5408\u306b\u5fc5\u8981 *\/\r\n#include &lt;math.h&gt;\r\n \r\n\/*** \u5b9a\u6570\u306e\u5b9a\u7fa9 ***\/\r\n#define N (5)\r\n#define PI (3.14159265)\r\n#define L (2*PI)\r\n \r\nint main() {\r\n    int i;\r\n    double X[N], Y[N], dx;\r\n \r\n    \/* \u5206\u5272\u5e45 dx \u3092\u6c42\u3081\u308b *\/\r\n    dx = L\/(N - 1);\r\n \r\n    \/* X[i] \u3092\u6c42\u3081\u308b *\/\r\n    for(i = 0; i &lt; N; i++) {\r\n        X[i] = i*dx;\r\n    }\r\n \r\n    \/* Y[i] \u3092\u6c42\u3081\u308b *\/\r\n    for(i = 0; i &lt; N; i++) {\r\n        Y[i] = sin(X[i]);\r\n    }\r\n \r\n    \/* \u7d50\u679c\u3092\u6570\u5024\u3068\u3057\u3066\u8868\u793a *\/\r\n    for(i = 0; i &lt; N; i++) {\r\n        printf(\"%lf %lf\\n\", X[i], Y[i]);\r\n    }\r\n    return 0;\r\n}<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"%e8%a3%9c%e8%b6%b3%ef%bc%91%e3%80%80%e5%ae%9a%e6%95%b0%ef%bc%88define_%e6%96%87%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%ef%bc%89\"><\/span>\u88dc\u8db3\uff11\u3000\u5b9a\u6570\uff08#define \u6587\u306e\u4f7f\u3044\u65b9\uff09<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"font-weight: 400;\">#define \u6587\u3092\u4f7f\u3046\u3068\u5b9a\u6570\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u901a\u5e38\u3001#include \u6587\u306e\u5f8c\u306b\u66f8\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">#define  N  (5)<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u66f8\u3044\u305f\u5834\u5408\u3001\u5f8c\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u4e2d\u306e N \u306f\u5168\u3066 (5) \u306b\u7f6e\u304d\u63db\u308f\u308a\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306b\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">#include &lt;stdio.h&gt;\r\n \r\n#define A (5)\r\n#define PI (3.14159265)\r\n \r\nint main() {\r\n    printf(\"%d %lf\\n\", A, PI);\r\n    return 0;\r\n}<\/pre>\n<p style=\"font-weight: 400;\">#define \u6587\u306f\u3001\u5b9f\u306f\u5358\u306b\u6587\u5b57\u5217\u3092\u7f6e\u304d\u63db\u3048\u308b\u3060\u3051\u3067\u3059\u3002<br \/>\n\u3064\u307e\u308a\u3001printf \u95a2\u6570\u90e8\u5206\u306b A \u304a\u3088\u3073 PI \u304c\u3042\u308a\u307e\u3059\u304c\u3001\u305d\u308c\u3089\u306f\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u6b21\u306e\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">printf(\"%d, %lf\\n\", (5), (3.14159265));<\/pre>\n<p style=\"font-weight: 400;\">#define \u6587\u3092\u4e0a\u624b\u306b\u4f7f\u3046\u3068\u3001\u30d7\u30e9\u30b0\u30e9\u30e0\u304c\u5927\u5909\u898b\u901a\u3057\u306e\u3088\u3044\u3082\u306e\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr \/>\n<pre>\u4f7f\u3044\u3053\u306a\u3059\u3068\u4fbf\u5229\u306a#define\u6587\u3067\u3059\u304c\u3001\u4f7f\u3044\u65b9\u304c\u307e\u305a\u3044\u3068\u6b63\u3057\u3044\u8a08\u7b97\u7d50\u679c\u3068\u306a\u3089\u306a\u304b\u3063\u305f\u308a\u3001\u8a08\u7b97\u901f\u5ea6\u306e\u4f4e\u4e0b\u3092\u62db\u304f\u306e\u3067\u3001\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002\u6b21\u306e\u4f8b\u3067\u306f\u3069\u306e\u3088\u3046\u306a\u7d50\u679c\u304c\u5f97\u3089\u308c\u308b\u304b\u4e88\u60f3\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\/\/ \u60aa\u3044\u4f8b\r\n#include &lt;stdio.h&gt;\r\n\r\n#define N 100\r\n#define T 2.0\r\n#define h T\/N\r\n\r\nint main() {\r\n    int M = 100;\r\n    printf(\"M = %d, h = %lf, M\/h = %lf\\n\", M, h, M\/h);\r\n    \r\n    return 0;\r\n}<\/pre>\n<pre>#define\u6587\u3067\u5165\u308c\u66ff\u3048\u308b\u6587\u5b57\u5217\u306f\u3001\u5fc5\u305a\u3057\u3082( )\u3067\u304f\u304f\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001\u305d\u308c\u3086\u3048\u306b\u6b63\u3057\u3044\u7d50\u679c\u3068\u306a\u3089\u306a\u3044\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002\r\n\u307e\u305f\u3001\u4e0a\u306e\u4f8b\u306eh\u306e\u3088\u3046\u306b#define\u6587\u306e\u4e2d\u306b\u8a08\u7b97\u5f0f\u3092\u5165\u308c\u3066\u3057\u307e\u3046\u3068\u3001h\u306e\u90e8\u5206\u304c\u5168\u3066T\/N\u3001\u3059\u306a\u308f\u30612.0\/100\u306e\u8a08\u7b97\u306b\u7f6e\u304d\u63db\u308f\u308a\u3001h\u306e\u90e8\u5206\u5168\u3066\u30672.0\/100\u3092\uff08\u7121\u99c4\u306b\uff09\u8a08\u7b97\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u7121\u99c4\u306a\u8a08\u7b97\u304c\u30c1\u30ea\u3068\u306a\u3063\u3066\u7a4d\u3082\u308a\u3001\u8a08\u7b97\u3092\u9577\u5f15\u304b\u305b\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"%e8%a3%9c%e8%b6%b3%ef%bc%92%e3%80%80%e5%be%a9%e7%bf%92%ef%bc%9a%e6%95%b0%e5%ad%a6%e9%96%a2%e6%95%b0%ef%bc%88%e4%b8%89%e8%a7%92%e9%96%a2%e6%95%b0%e7%ad%89%ef%bc%89%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\"><\/span>\u88dc\u8db3\uff12\u3000\u5fa9\u7fd2\uff1a\u6570\u5b66\u95a2\u6570\uff08\u4e09\u89d2\u95a2\u6570\u7b49\uff09\u306e\u4f7f\u3044\u65b9<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"font-weight: 400;\">C\u8a00\u8a9e\u3067\u306f\u4e0a\u8a18\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u3088\u3046\u306b\u3001\u4e09\u89d2\u95a2\u6570\u7b49\u306e\u69d8\u3005\u306a\u6570\u5b66\u95a2\u6570\u3092\u7528\u3044\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u6570\u5b66\u95a2\u6570\u3092\u7528\u3044\u308b\u5834\u5408\u306b\u306f\u3001<\/p>\n<p style=\"font-weight: 400;\">#include &lt;math.h&gt; \u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5148\u982d\u4ed8\u8fd1\u306b\u66f8\u304d\u5165\u308c\u308b\u3053\u3068\u3068\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092 gnup-1.c \u3068\u3059\u308b\u3068\u3001<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">gcc\u3000gnup-1.c\u3000-o\u3000gnup-1\u3000-lm<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u3044\u3046\u3075\u3046\u306b\u3001\u6700\u5f8c\u306b -lm \u3092\u4ed8\u3051\u8db3\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p style=\"font-weight: 400;\">sin()\u306e\u4ed6\u306bcos(), tan(), log(), exp()\u306a\u3069\u3044\u308d\u3044\u308d\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"%ef%bc%88%e9%87%8d%e8%a6%81%ef%bc%89%e3%83%87%e3%83%bc%e3%82%bf%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e4%bd%9c%e6%88%90%e3%83%bb%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%ef%bc%88%e6%9c%ac%e9%a1%8c%e3%81%ab%e6%88%bb%e3%82%8a%e3%81%be%e3%81%99%ef%bc%89\"><\/span><span style=\"color: #ff0000;\">\uff08\u91cd\u8981\uff09<a id=\"datafile\"><\/a>\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u30fb\u30ea\u30c0\u30a4\u30ec\u30af\u30c8<\/span>\uff08\u672c\u984c\u306b\u623b\u308a\u307e\u3059\uff09<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"font-weight: 400;\">\u4e0a\u8a18\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f7f\u3063\u3066\u3001N \u3068\u30b0\u30e9\u30d5\u306e\u95a2\u4fc2\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u307e\u305a\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">gcc gnup-1.c -o gnup-1 -lm<\/pre>\n<p style=\"font-weight: 400;\">\u7d9a\u3044\u3066\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">.\/gnup-1<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u3059\u308b\u3068\u3001\u6570\u5024\u306e\u5217\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3089\u6570\u5024\u3092gnuplot\u3067\u30b0\u30e9\u30d5\u5316\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u3053\u306e\u6570\u5024\u306e\u5217\u304b\u3089\u306a\u308b\u3001\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3059.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">.\/gnup-1 &gt; N=5.data<\/pre>\n<p style=\"font-weight: 400;\">\u4e0a\u8a18\u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u3001\u6570\u5024\u5217\u306f\u753b\u9762\u306b\u8868\u793a\u3055\u308c\u305a\u3001N=5.data \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u3001\u305d\u3053\u306b\u66f8\u304d\u8fbc\u307e\u308c\u307e\u3059\u3002<\/p>\n<p style=\"font-weight: 400;\">(\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u3067\u3001more N=5.data \u306a\u3069\u3068\u3059\u308b\u3068\u3001\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002 \u306a\u304a\u4eca\u56de\u306f\u3001N=5\u306a\u306e\u3067\u3053\u306e\u3088\u3046\u306a\u540d\u524d\u306b\u3057\u307e\u3057\u305f\u304c\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u57fa\u672c\u7684\u306b\u81ea\u7531\u3067\u3059\u304c\u3001\u7a7a\u767d\u306a\u3069\u306e\u6587\u5b57\u5217\u3092\u5165\u308c\u308b\u3068\u5f8c\u3005\u9762\u5012\u306a\u3053\u3068\u304c\u8d77\u3053\u308a\u307e\u3059\u306e\u3067\u3001\u4ed8\u3051\u306a\u3044\u65b9\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002)<\/p>\n<p style=\"font-weight: 400;\">gnuplot \u3092\u8d77\u52d5\u3057\u3001<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">plot [0:2*pi] \"N=5.data\" with linespoints, sin(x)<\/pre>\n<p>\u3068\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2966\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig10.png\" alt=\"\" width=\"754\" height=\"693\" srcset=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig10.png 754w, https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig10-300x276.png 300w\" sizes=\"auto, (max-width: 754px) 100vw, 754px\" \/><\/p>\n<p style=\"font-weight: 400;\">\u7dd1\u8272\u3067\u66f8\u304b\u308c\u305f\u30b0\u30e9\u30d5\u304c\u63cf\u304d\u305f\u3044\u30b0\u30e9\u30d5 (y = sin(x) )\u3067\u3059\u3002<br \/>\n\u7d2b\u8272\u304c\u63cf\u3053\u3046\u3068\u3057\u3066\u3044\u308b\u6298\u308c\u7dda\u3067\u3059\u3002<br \/>\nN=5 \u306e\u5834\u5408\u306f\u4e0a\u56f3\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff08\u7d2b\u7dda\uff09\u3002<br \/>\n\u3053\u308c\u3067\u306f\u3001\u307e\u3063\u305f\u304f y = sin(x) \u306e\u30b0\u30e9\u30d5\u306b\u306f\u898b\u3048\u307e\u305b\u3093\u3002<\/p>\n<p style=\"font-weight: 400;\">\u3064\u3065\u3044\u3066\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5909\u66f4\u3057N\u309210\u306b\u3057\u3066\u540c\u69d8\u306b N=10.data \u3092\u4f5c\u6210\u3057\u30b0\u30e9\u30d5\u3092\u63cf\u3044\u3066\u307f\u307e\u3059\u3002<br \/>\n\u66f2\u7dda\u3063\u307d\u304f\u307f\u3048\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2967\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig11.png\" alt=\"\" width=\"754\" height=\"693\" srcset=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig11.png 754w, https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig11-300x276.png 300w\" sizes=\"auto, (max-width: 754px) 100vw, 754px\" \/><\/p>\n<p style=\"font-weight: 400;\">N=50 \u306e\u5834\u5408\u3002\u898b\u305f\u76ee\u306f\u307b\u307c y=sin(x) \u306e\u30b0\u30e9\u30d5\u306b\u898b\u3048\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2968\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig12.png\" alt=\"\" width=\"754\" height=\"693\" srcset=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig12.png 754w, https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig12-300x276.png 300w\" sizes=\"auto, (max-width: 754px) 100vw, 754px\" \/><\/p>\n<p style=\"font-weight: 400;\">\u3055\u3066\u3001\u66f2\u7dda\u3092\u6298\u308c\u7dda\u3067\u8fd1\u4f3c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n\u5b9f\u306f gnuplot \u3082\u5185\u90e8\u3067\u540c\u3058\u3053\u3068\u3092\u3084\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u6a19\u6e96\u72b6\u614b\u3067100\u672c\u306e\u6298\u308c\u7dda\u3067\u63cf\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n<p style=\"font-weight: 400;\">\u4f8b\u3048\u3070\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">set sample 10\r\nplot [0:2*pi] sin(x)<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u3059\u308b\u3068\u3001\u305d\u306e\u6307\u5b9a\u3055\u308c\u305f\u6570\uff08\u3053\u3053\u3067\u306f 10\u672c\uff09\u306e\u6298\u7dda\u3067\u66f2\u7dda\u3092\u63cf\u304d\u307e\u3059\u3002(\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002)<\/p>\n<p style=\"font-weight: 400;\">\u5148\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u4f8b\u3067\u306f\u3001 \u8aac\u660e\u306e\u70ba\u3001\u5c11\u3005\u5197\u9577\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<br \/>\n\u5b9f\u969b\u306b\u306f\u4ee5\u4e0b\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3082\u540c\u69d8\u306e\u7d50\u679c\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<br \/>\n\u5404\u81ea\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>gnup-1a.c<\/strong><\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">#include &lt;stdio.h&gt;\r\n#include &lt;math.h&gt;\r\n \r\n\/* \u5b9a\u6570\u306e\u5b9a\u7fa9 *\/\r\n#define N (5)\r\n#define PI (3.14159265)\r\n#define L (2*PI)\r\n \r\nint main() {\r\n    int i;\r\n    double dx;\r\n \r\n    \/* dx \u3092\u6c42\u3081\u308b *\/\r\n    dx = L\/(N - 1);\r\n \r\n    \/* \u7d50\u679c\u3092\u753b\u9762\u306b\u8868\u793a *\/\r\n    for(i = 0; i &lt; N; i++) {\r\n        printf(\"%lf %lf\\n\", i*dx, sin(i*dx));\r\n    }\r\n    return 0;\r\n}<\/pre>\n<p style=\"font-weight: 400;\">\uff08gnuplot\u306b\u3064\u3044\u3066\u306f\u3001web\u3067\u691c\u7d22\u3059\u308b\u3068\u3001\u8a73\u3057\u3044\u4f7f\u3044\u304b\u305f\u304c\u8f09\u3063\u3066\u3044\u308bHP\u304c\u5e7e\u3064\u304b\u898b\u4ed8\u304b\u308a\u307e\u3059\u3002\u307e\u305f\u5c02\u9580\u66f8\u3092\u7f6e\u3044\u3066\u3044\u308b\u66f8\u5e97\u306b\u3082\u3044\u304f\u3064\u304b\u89e3\u8aac\u66f8\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u305d\u308c\u3089\u3092\u53c2\u8003\u306b\u3001\u3044\u308d\u3044\u308d\u3044\u3058\u3063\u3066\u307f\u3066\u4e0b\u3055\u3044\u3002\uff09<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%e8%aa%b2%e9%a1%8c%ef%bc%90\"><\/span>\u8ab2\u984c\uff10<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\uff08\u7b2c\uff18\u56de\u306e\u30ec\u30dd\u30fc\u30c8\u8ab2\u984c2\u304c\u7d42\u308f\u3063\u3066\u3044\u308b\u4eba\u306e\u307f\uff09<br \/>\nsin(x)\u53ca\u3073<a href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/\u6388\u696d\u8cc7\u6599\/\u8a08\u7b97\u6570\u5b66\u6f14\u7fd2\/\u8a08\u7b97\u6570\u5b66\u6f14\u7fd2\u7b2c\uff18\u56de\/#rep2\" target=\"_blank\" rel=\"noopener\">\u7b2c\uff18\u56de\u306e\u30ec\u30dd\u30fc\u30c8\u8ab2\u984c2<\/a>\u306e\u7d50\u679c\u3092\u63cf\u753b\u3057\u3066\u307f\u3088\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%e8%aa%b2%e9%a1%8c%ef%bc%91\"><\/span>\u8ab2\u984c\uff11<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"font-weight: 400;\">gnup-1.c\u3092\u6539\u9020\u3057\u3066\u3001cos(x) &#8211; cos(1.1 x)\u306e\u30c7\u30fc\u30bf\u3092\u51fa\u529b\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u8a08\u7b97\u7d50\u679c\u3092\u30d5\u30a1\u30a4\u30ebunari.data\u306b\u51fa\u529b\u305b\u3088\u3002<\/p>\n<p style=\"font-weight: 400;\">\u305f\u3060\u3057\u3001\u51fa\u529b\u3059\u308bx\u306e\u7bc4\u56f2\u306f[0:150]\u3068\u3059\u308b\u3002<br \/>\n\u8868\u793a\u7bc4\u56f2\u304c\u5e83\u3044\u306e\u3067\u3001N\u306f\u5927\u304d\u3081\uff081000\u7a0b\u5ea6\uff09\u306b\u3068\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u6ce8\u610f\u3002<\/p>\n<p style=\"font-weight: 400;\">\u305d\u3057\u3066\u3001gnuplot\u3092\u7528\u3044\u3066\u3001<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">plot 'unari.data' w l<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u3057\u305f\u3068\u304d\u306b\u3001\u5468\u671f20\u03c0\u306e\u300c\u3046\u306a\u308a\u300d\u304c\u898b\u3048\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3002<\/p>\n<p style=\"font-weight: 400;\">\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u3044\u305a\u306bgnuplot\u5358\u4f53\u3067\u3082\u3001cos(x)-cos(1.1 x)\u306f\u63cf\u753b\u53ef\u80fd\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">plot cos(x)-cos(1.1*x)<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u3059\u308c\u3070\u3044\u3044\u3002\u3060\u304c\u3001set sample \u3067\u5024\u3092\u5927\u304d\u304f\u8a2d\u5b9a\u3057\u3066\u304a\u304b\u306a\u3044\u3068\u9593\u9055\u3063\u305f\u7d50\u679c\u304c\u3067\u308b\u306e\u3067\u6ce8\u610f\u3002<\/p>\n<p style=\"font-weight: 400;\">\uff08\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u308a\u65b9\u306f\u3001\u300c<a href=\"#datafile\">\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210<\/a>\u300d\u3092\u53c2\u7167\u306e\u3053\u3068\uff09<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%e8%aa%b2%e9%a1%8c%ef%bc%92\"><\/span>\u8ab2\u984c\uff12<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"font-weight: 400;\">gnup-1.c\u3092\u6539\u9020\u3057\u3066\u3001\u6b63\u4e09\u89d2\u5f62\u3001\u6b63\u65b9\u5f62\u3001\u6b63\u4e94\u89d2\u5f62\u3001\u6b63\u516d\u89d2\u5f62\u3092\u63cf\u3051\u3002\uff08N \u306f\u9069\u5ea6\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\uff09<\/p>\n<p style=\"font-weight: 400;\">\uff08\u6570\u5024\u30c7\u30fc\u30bf\u306e\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u66f8\u304d\u51fa\u3057\u65b9\u306f\u3001\u524d\u8ff0\u306e\u300c\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u300d\u3092\u53c2\u7167\uff09<\/p>\n<p style=\"font-weight: 400;\">\uff08\u88dc\u8db3\uff09gnuplot \u5185\u3067<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">set size square\r\nplot [-4:4][-4:4] '(\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u540d)' with lines<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u3059\u308b\u3068\u3001\u7e26\u8ef8\u3001\u6a2a\u8ef8\u306e\u7e2e\u5c3a\u304c\u540c\u3058\u30b0\u30e9\u30d5\u304c\u63cf\u3051\u307e\u3059\u3002(\u8a66\u3057\u3066\u307f\u3066\u4e0b\u3055\u3044\u3002)<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%e8%aa%b2%e9%a1%8c%ef%bc%92%ef%bc%95\"><\/span>\u8ab2\u984c\uff12.\uff15<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"font-weight: 400;\">x(t)\u3001y1(t), y2(t)\u306f\u6b21\u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u3068\u3059\u308b\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">x(t) = cos(t)\r\ny1(t) = sin(a*t)\r\ny2(t) = sin((a+0.02)*t)<\/pre>\n<p style=\"font-weight: 400;\">\u5b9f\u6570a\u306e\u5165\u529b\u3092\u30ad\u30fc\u30dc\u30fc\u30c9\u304b\u3089\u53d7\u3051\u3064\u3051\u3001t\u30920\u304b\u3089300\u307e\u3067\u3001\u52d5\u304b\u3057\u305f\u3068\u304d\u306et\u3001x(t),y1(t),y2(t)\u3092\u51fa\u529b\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u305b\u3088\u3002<\/p>\n<p style=\"font-weight: 400;\">\u203b \u3053\u306e\u3068\u304d\u3001\u300ca\u306e\u5024\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u300d\u3068printf\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u3001data\u30d5\u30a1\u30a4\u30eb\u306b\u3059\u3079\u3066\u53ce\u7d0d\u3055\u308c\u3066\u3057\u307e\u3044\u753b\u9762\u306b\u306f\u4e00\u5207\u8868\u793a\u3055\u308c\u306a\u3044\u306e\u3067\u3001\u4eca\u56de\u306f\u3001\u3053\u306e\u3088\u3046\u306a\u5165\u529b\u3092\u4fc3\u3059\u6587\u7ae0\u306e\u5fc5\u8981\u306f\u306a\u3044\u3002<\/p>\n<p>(x,y1), (x,y2)\u3092\u540c\u6642\u306b\u63cf\u753b\u3057\u3066\u3001\u9055\u3044\u3092\u78ba\u8a8d\u3057\u3066\u307f\u3088\u3002(a=1.0,1.5, 2.0\u306a\u3069\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\uff09<\/p>\n<p style=\"font-weight: 400;\">\u305f\u3060\u3057\u3001\u51fa\u529b\u3055\u308c\u308b\u30c7\u30fc\u30bf\u306ft=0\u304b\u30890.01\u6bce\u306b<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">0.00  \u3000x(0.00)\u306e\u6570\u5024  y1(0.00)\u306e\u6570\u5024 y2(0.00)\u306e\u6570\u5024\r\n0.01  \u3000x(0.01)\u306e\u6570\u5024  y1(0.01)\u306e\u6570\u5024 y2(0.01)\u306e\u6570\u5024\r\n0.02  \u3000x(0.02)\u306e\u6570\u5024  y1(0.02)\u306e\u6570\u5024 y2(0.02)\u306e\u6570\u5024\r\n\u2026<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u51fa\u529b\u3055\u308c\u308b\u3082\u306e\u3068\u3059\u308b\u3002<\/p>\n<p style=\"font-weight: 400;\">\uff08\u5404\u6570\u5024\u306e\u9593\u306b\u306f\u3001\u30b9\u30da\u30fc\u30b9\u304c\u4e00\u3064\u306f\u3044\u308b\u3002\u3053\u3053\u3067\u306f\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6841\u6570\u304c\u4e8c\u6841\u306b\u306a\u308b\u3088\u3046\u306b\u8868\u793a\u3057\u3066\u3042\u308b\u304c\u3001\u4f55\u6841\u3067\u3042\u3063\u3066\u3082\u304b\u307e\u308f\u306a\u3044\u3002\uff09<\/p>\n<p style=\"font-weight: 400;\">\u307e\u305f\u5fc5\u305agnuplot\u3067\u53ef\u8996\u5316\u3057\u3001xy\u5e73\u9762\u3067\u3069\u306e\u3088\u3046\u306a\u56f3\u304c\u63cf\u3051\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%e8%aa%b2%e9%a1%8c%ef%bc%93\"><\/span>\u8ab2\u984c\uff13<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"font-weight: 400;\">x(t)\u3001y(t)\u306f\u6b21\u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u3068\u3059\u308b\u3002<\/p>\n<pre class=\"EnlighterJSRAW\">x(t) = (1.5+sin(n*t\/2))*cos(t)\r\ny(t) = (1.5+sin(n*t\/2))*sin(t)<\/pre>\n<p style=\"font-weight: 400;\">\u6b63\u306e\u6574\u6570n\u306e\u5165\u529b\u3092\u4fc3\u3057\u3001t\u30920\u304b\u308912.5\u307e\u3067\u3001\u52d5\u304b\u3057\u305f\u3068\u304d\u306et\u3001x(t)\u3001y(t)\u3092\u51fa\u529b\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u305b\u3088\u3002\u305f\u3060\u3057\u3001\u51fa\u529b\u3055\u308c\u308b\u30c7\u30fc\u30bf\u306ft=0\u304b\u30890.01\u6bce\u306b<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">0.00 x(0.00)\u306e\u6570\u5024 y(0.00)\u306e\u6570\u5024\r\n0.01 x(0.01)\u306e\u6570\u5024 y(0.01)\u306e\u6570\u5024\r\n0.02 x(0.02)\u306e\u6570\u5024 y(0.02)\u306e\u6570\u5024\r\n\u2026<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u51fa\u529b\u3055\u308c\u308b\u3082\u306e\u3068\u3059\u308b\u3002<\/p>\n<p style=\"font-weight: 400;\">\uff08\u5404\u6570\u5024\u306e\u9593\u306b\u306f\u3001\u30b9\u30da\u30fc\u30b9\u304c\u4e00\u3064\u306f\u3044\u308b\u3002<br \/>\n\u3053\u3053\u3067\u306f\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6841\u6570\u304c\u4e8c\u6841\u306b\u306a\u308b\u3088\u3046\u306b\u8868\u793a\u3057\u3066\u3042\u308b\u304c\u3001\u4f55\u6841\u3067\u3042\u3063\u3066\u3082\u304b\u307e\u308f\u306a\u3044\u3002\uff09<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%e8%aa%b2%e9%a1%8c%ef%bc%94\"><\/span>\u8ab2\u984c\uff14<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"font-weight: 400;\">\u4ee5\u4e0b\u306e\u69d8\u306a\u3001\uff16\u500b\u306e\u72ec\u7acb\u3057\u305f\uff08\u7dda\u7b49\u3067\u7e4b\u304c\u3063\u3066\u3044\u306a\u3044\uff09\u76f4\u5f84\uff11\u306e\u5186\u304c\u3001\u6b63\u516d\u89d2\u5f62\u72b6\u306b\u4e26\u3093\u3067\u3044\u308b\u7d75\u3092\u63cf\u304f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u3001gnuplot\u3067\u63cf\u753b\u305b\u3088\u3002<br \/>\n\u5186\u4e00\u3064\u306b\u3064\u304d\uff15\uff10\u500b\u7a0b\u5ea6\u306e\u70b9\uff08N=50\uff09\u3092\u4f7f\u3044\u3001\u4f8b\u3048\u3070\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u3092 en6-data \u3068\u3057<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">plot 'en6-data' w l<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u3057\u305f\u3068\u304d\u306b\u3001\u4ee5\u4e0b\u3068\u540c\u69d8\u306e\u7d75\u304c\u63cf\u304b\u308c\u308b\u3053\u3068\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2969\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig13.png\" alt=\"\" width=\"754\" height=\"693\" srcset=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig13.png 754w, https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2023\/01\/ks9-fig13-300x276.png 300w\" sizes=\"auto, (max-width: 754px) 100vw, 754px\" \/><\/p>\n<p style=\"font-weight: 400;\">\uff08\u30d2\u30f3\u30c8\uff09\u5909\u6570\u306f\u5186\u306e\u4e2d\u5fc3\u5ea7\u6a19\u3001\u5186\u5468\u306e\u5404\u70b9\u306e\u5ea7\u6a19\u3001\u304a\u3088\u3073\u305d\u308c\u305e\u308c\u306e\u4f4d\u76f8\u3002<br \/>\n\u307e\u305f\u4e0b\u8a18\u306e\u4f8b\u306e\u3088\u3046\u306b\u3001\u6539\u884c\u30b3\u30de\u30f3\u30c9 printf(&#8220;\\n&#8221;) \u3092\u3046\u307e\u304f\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u306b\u7a7a\u767d\u884c\u3092\u3064\u304f\u308b<\/p>\n<h4><span class=\"ez-toc-section\" id=\"%e3%83%87%e3%83%bc%e3%82%bf%e3%81%ab%e7%a9%ba%e7%99%bd%e8%a1%8c%e3%82%92%e4%bd%9c%e3%82%8b%e4%be%8b\"><\/span><u>\u30c7\u30fc\u30bf\u306b\u7a7a\u767d\u884c\u3092\u4f5c\u308b\u4f8b<\/u><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p style=\"font-weight: 400;\">\u4f8b\u3048\u3070\u6b21\u306e\u3088\u3046\u306b printf(&#8220;\\n&#8221;)\uff08\u4f55\u3082\u66f8\u304b\u305a\u306b\u6539\u884c\u306e\u307f\u3059\u308b\uff09\u3092\u4f7f\u3046\u3068\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u7a7a\u767d\u884c\u306e\u3042\u308b\u30c7\u30fc\u30bf\u304c\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">#include &lt;stdio.h&gt;\r\n \r\nint main() {\r\n    int i,j;\r\n \r\n    \/** \uff13\u56de\u7e70\u308a\u8fd4\u3057 **\/\r\n    for(i=0; i&lt;3; i++) {\r\n        \/** 0 1 2 \u3092\u8868\u793a\u3055\u305b\u308b\u90e8\u5206 **\/\r\n        for(j=0; j&lt;3; j++) {\r\n            printf(\"%d\\n\", j);\r\n        }\r\n        \/** j \u306b\u3064\u3044\u3066\u306e\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u5f8c\u306b\u4f55\u3082\u66f8\u304b\u305a\u306b\u6539\u884c\uff08\u7a7a\u767d\u884c\u3092\u3064\u304f\u308b\uff09 **\/\r\n        printf(\"\\n\");\r\n    }\r\n    return 0;\r\n}<\/pre>\n<p style=\"font-weight: 400;\">\u3053\u308c\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u5b9f\u884c\u3059\u308b\u3068<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">0\r\n1\r\n2\r\n \r\n0\r\n1\r\n2\r\n \r\n0\r\n1\r\n2<\/pre>\n<p style=\"font-weight: 400;\">\u3068\u3001\u7a7a\u884c\u4ed8\u304d\u3067\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u8ab2\u984c4\u3067\u306f\u3053\u308c\u3092\u5fdc\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%e4%bb%8a%e6%97%a5%e5%ad%a6%e3%82%93%e3%81%a0%e4%ba%8b\"><\/span>\u4eca\u65e5\u5b66\u3093\u3060\u4e8b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul style=\"font-weight: 400;\">\n<li>gnuplot \u3068C\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u30b0\u30e9\u30d5\u3001\u56f3\u5f62\u3092\u63cf\u753b\u3057\u307e\u3057\u305f\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>gnuplot\u3067\u306e\u30b0\u30e9\u30d5\u306e\u63cf\u753b \u4eca\u65e5\u304b\u3089gnuplot\u3092\u4f7f\u3044\u307e\u3059\u304c\u3001OS\u554f\u308f\u305a\u6a19\u6e96\u3067\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u306a\u3044\u4eba\u306f\u8a08\u7b97\u6570\u5b66\u6f14\u7fd2\u7b2c\uff10\u56de\u3092\u53c2\u8003\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002\uff08\u30e1\u30c7\u30a3\u30a2\u30bb\u30f3\u30bf\u30fc\u306e\u7aef\u672b\u306b\u306f &hellip; <a href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92\/%e8%a8%88%e7%ae%97%e6%95%b0%e5%ad%a6%e6%bc%94%e7%bf%92%e7%ac%ac%ef%bc%99%e5%9b%9e\/\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u8a08\u7b97\u6570\u5b66\u6f14\u7fd2\u7b2c\uff19\u56de<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1691,"menu_order":38,"comment_status":"closed","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-1792","page","type-page","status-publish","hentry"],"aioseo_notices":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/PaSLRw-sU","_links":{"self":[{"href":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wp-json\/wp\/v2\/pages\/1792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wp-json\/wp\/v2\/comments?post=1792"}],"version-history":[{"count":31,"href":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wp-json\/wp\/v2\/pages\/1792\/revisions"}],"predecessor-version":[{"id":3560,"href":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wp-json\/wp\/v2\/pages\/1792\/revisions\/3560"}],"up":[{"embeddable":true,"href":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wp-json\/wp\/v2\/pages\/1691"}],"wp:attachment":[{"href":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wp-json\/wp\/v2\/media?parent=1792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}