{"id":1801,"date":"2021-08-23T15:50:22","date_gmt":"2021-08-23T06:50:22","guid":{"rendered":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/?p=1801"},"modified":"2021-08-23T16:06:08","modified_gmt":"2021-08-23T07:06:08","slug":"maxima-%e3%81%ae-draw2d-%e3%81%a72%e6%9b%b2%e7%b7%9a%e9%96%93%e3%81%ae%e9%a0%98%e5%9f%9f%e3%82%92%e5%a1%97%e3%82%8a%e3%81%a4%e3%81%b6%e3%81%97%e3%81%a8%e3%82%b0%e3%83%a9%e3%83%95%e3%81%ae%e6%9b%b8","status":"publish","type":"post","link":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/1801\/","title":{"rendered":"Maxima \u306e draw2d \u30672\u66f2\u7dda\u9593\u306e\u9818\u57df\u3092\u5857\u308a\u3064\u3076\u3057\u3068\u30b0\u30e9\u30d5\u306e\u66f8\u304d\u51fa\u3057"},"content":{"rendered":"<h3>\u9818\u57df\u306e\u5857\u308a\u3064\u3076\u3057<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/ql-cache\/quicklatex.com-a63915c8975eddb645134940a1d3cdbd_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#100;&#105;&#115;&#112;&#108;&#97;&#121;&#115;&#116;&#121;&#108;&#101;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#112;&#105;&#125;&#123;&#52;&#125;&#32;&#92;&#108;&#101;&#113;&#32;&#120;&#32;&#92;&#108;&#101;&#113;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#53;&#32;&#92;&#112;&#105;&#125;&#123;&#52;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"37\" width=\"92\" style=\"vertical-align: -12px;\"\/>\u306e\u7bc4\u56f2\u3067 <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/ql-cache\/quicklatex.com-e3614ba13db58d16e05bcad0ddf30d2d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#121;&#32;&#61;&#32;&#92;&#115;&#105;&#110;&#32;&#120;&#36;&#32;&#12392;&#32;&#36;&#32;&#121;&#32;&#61;&#32;&#92;&#99;&#111;&#115;&#32;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"149\" style=\"vertical-align: -4px;\"\/> \u3067\u56f2\u307e\u308c\u305f\u90e8\u5206\u3092\u9ec4\u8272\u3067\u5857\u308a\u3064\u3076\u3059\u4f8b\u3002<\/p>\n<pre>\/* \u56f2\u307e\u308c\u305f\u90e8\u5206\u3092\u5857\u308a\u3064\u3076\u3057\u3066\u8868\u793a\u3002*\/\r\n\r\ndraw2d(\/* \u5857\u308a\u3064\u3076\u3059\u8272\u306e\u6307\u5b9a\u3002*\/\r\n       fill_color = yellow, \r\n       \/* \u4e0a\u306e\u7dda\u3002*\/\r\n       filled_func = sin(x), \r\n       \/* \u4e0b\u306e\u7dda\u3068\u7bc4\u56f2\u306e\u6307\u5b9a\u3002*\/\r\n       explicit(cos(x), x, %pi\/4, 5*%pi\/4))$<\/pre>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1795\" src=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/myfile1-640x479.png\" alt=\"\" width=\"640\" height=\"479\" srcset=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/myfile1-640x479.png 640w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/myfile1-300x224.png 300w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/myfile1-360x270.png 360w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/myfile1.png 1280w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<pre>\/* \u3082\u3046\u5c11\u3057\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u3066\u3002*\/\r\n\r\ndraw2d(xrange = [0, 2*%pi],\r\n       yrange = [-1.1, 1.3],\r\n       xaxis = true, font = \"Times\", font_size = 14,\r\n       user_preamble = \"set xtics pi\/4; set format x '%4.2P \u03c0';\r\nset grid front;\",\r\n       \/* \u9818\u57df\u306e\u5857\u308a\u3064\u3076\u3057 *\/\r\n       fill_color = yellow,\r\n       filled_func = sin(x),\r\n       explicit(cos(x), x, %pi\/4, 5*%pi\/4),\r\n       \/* sin(x) \u3068 cos(x) \u306e parametric \u3067\u306e\u63cf\u753b *\/\r\n       \/* \u5857\u308a\u3064\u3076\u3057\u304c\u3042\u308b\u3068\u304d\u306f explicit \u4ee5\u5916\u3067\u7dda\u3092\u63cf\u304f *\/\r\n       nticks = 300, line_width = 2,\r\n       color = blue, key = \"sin x\",\r\n       parametric(x, sin(x), x, 0, 2*%pi),\r\n       color = red, key = \"cos x\",\r\n       parametric(x, cos(x), x, 0, 2*%pi),\r\n       \/* x = \u03c0\/4 \u3068 x = 5 \u03c0\/4 \u306e\u30e9\u30a4\u30f3 *\/\r\n       \/* points_joined \u3092 true \u306b\u3057\u3066 points() \u3067 2 \u70b9\u3092\u7d50\u3076 *\/\r\n       points_joined = true, point_size = 0, color = black, key = \"\",\r\n       points([[%pi\/4, -1.1], [%pi\/4, sin(%pi\/4)]]),\r\n       points([[5*%pi\/4, -1.1], [5*%pi\/4, sin(5*%pi\/4)]])\r\n)$<\/pre>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1796\" src=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/myfile2-640x479.png\" alt=\"\" width=\"640\" height=\"479\" srcset=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/myfile2-640x479.png 640w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/myfile2-300x224.png 300w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/myfile2-360x270.png 360w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/myfile2.png 1280w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u3082\u3046\u4e00\u3064\u306e\u4f8b\u3002<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/ql-cache\/quicklatex.com-3577120edfdb56fd4d7eec6539e30c0d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#121;&#32;&#61;&#32;&#102;&#40;&#120;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"67\" style=\"vertical-align: -5px;\"\/> \u3068 <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/ql-cache\/quicklatex.com-7e5fbfa0bbbd9f3051cd156a0f1b5e31_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"10\" style=\"vertical-align: 0px;\"\/> \u8ef8\u306e\u9593\u3092\uff0c<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/ql-cache\/quicklatex.com-2f5a1eff7f28a3c6c6652a51505d6e4f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#45;&#48;&#46;&#50;&#53;&#32;&#92;&#108;&#101;&#113;&#32;&#120;&#32;&#92;&#108;&#101;&#113;&#32;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"110\" style=\"vertical-align: -3px;\"\/> \u307e\u3067\u306f\u9ec4\u8272\u3067\uff0c<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/ql-cache\/quicklatex.com-352dd21e8504d4a67439fe0370798de6_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#50;&#32;&#92;&#108;&#101;&#113;&#32;&#120;&#32;&#92;&#108;&#101;&#113;&#32;&#50;&#46;&#53;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"88\" style=\"vertical-align: -3px;\"\/> \u307e\u3067\u306f\u7070\u8272\u3067\u5857\u308a\u3064\u3076\u3059\u4f8b\u3002<\/p>\n<p>&nbsp;<\/p>\n<pre>f(x):= 0.6*x + 0.4*cos(x)$\r\ndraw2d(\/* x \u8ef8\uff0cy \u8ef8\u306e\u5b9f\u7dda\u8868\u793a *\/\r\n       xaxis =true, xaxis_type=solid,\r\n       yaxis =true, yaxis_type=solid,\r\n       user_preamble=\"set grid front\",\r\n       \/* x, y \u306e\u8868\u793a\u7bc4\u56f2\u8a2d\u5b9a *\/\r\n       xrange = [-0.2,3.5],\r\n       yrange = [-0.2,1.5],\r\n       \/* \u6700\u521d\u306e\u5857\u308a\u3064\u3076\u3057\u3002\u8272\u3092 yellow \u3067 *\/\r\n       \/* y = f(x) \u3068 y \u8ef8\u306e\u9593\u3092 x \u304c 0.25 \u304b\u3089 2 \u307e\u3067 *\/\r\n       fill_color = yellow,\r\n       filled_func = f(x),\r\n       explicit(0, x, 0.25, 2),\r\n       \/* \u6b21\u306e\u5857\u308a\u3064\u3076\u3057\u3002\u8272\u3092 gray \u3067 *\/\r\n       \/* y = f(x) \u3068 y \u8ef8\u306e\u9593\u3092 x \u304c 2 \u304b\u3089 2.5 \u307e\u3067 *\/\r\n       fill_color = gray,\r\n       filled_func = f(x),\r\n       explicit(0, x, 2, 2.5),\r\n       line_width = 2,\r\n       \/* \u6700\u5f8c\u306b y = f(x) \u3092 x \u304c 0.1 \u304b\u3089 2.7 \u307e\u3067 *\/\r\n       \/* \u5857\u308a\u3064\u3076\u3057\u306e explicit \u3068\u306e\u6df7\u540c\u3092\u907f\u3051\u308b\u305f\u3081 parametric \u3067 *\/\r\n       parametric(x, f(x), x, 0.1, 2.7)\r\n)$<\/pre>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1797\" src=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/myfile3-640x479.png\" alt=\"\" width=\"640\" height=\"479\" srcset=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/myfile3-640x479.png 640w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/myfile3-300x224.png 300w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/myfile3-360x270.png 360w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/myfile3.png 1280w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>\u30b0\u30e9\u30d5\u3092 pdf \u3067\u66f8\u304d\u51fa\u3057<\/h3>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\uff0c<code>file_name = \"myfile1\", terminal = 'pdf, dimensions = [1024, 768],<\/code> \u306a\u3069\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u3064\u3051\u3066 <code>draw2d<\/code> \u3059\u308b\u3068\uff0c\u30b0\u30e9\u30d5\u90e8\u5206\u304c <code>myfile1.pdf<\/code> \u3067\u4fdd\u5b58\u3055\u308c\u308b\u3002<\/p>\n<pre>draw2d(file_name = \"myfile1\", terminal = 'pdf, dimensions = [1024, 768],\r\n       \/* \u5857\u308a\u3064\u3076\u3059\u8272\u306e\u6307\u5b9a\u3002*\/ \r\n       fill_color = yellow, \r\n       \/* \u4e0a\u306e\u7dda\u3002*\/\r\n       filled_func = sin(x), \r\n       \/* \u4e0b\u306e\u7dda\u3068\u7bc4\u56f2\u306e\u6307\u5b9a\u3002*\/\r\n       explicit(cos(x), x, %pi\/4, 5*%pi\/4))$<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u9818\u57df\u306e\u5857\u308a\u3064\u3076\u3057 \u306e\u7bc4\u56f2\u3067 \u3067\u56f2\u307e\u308c\u305f\u90e8\u5206\u3092\u9ec4\u8272\u3067\u5857\u308a\u3064\u3076\u3059 <a href=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/1801\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[14,15],"tags":[],"class_list":["post-1801","post","type-post","status-publish","format-standard","hentry","category-jupyter","category-maxima"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts\/1801","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/comments?post=1801"}],"version-history":[{"count":7,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts\/1801\/revisions"}],"predecessor-version":[{"id":1805,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts\/1801\/revisions\/1805"}],"wp:attachment":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/media?parent=1801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/categories?post=1801"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/tags?post=1801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}