{"id":61,"date":"2022-10-18T21:24:36","date_gmt":"2022-10-18T21:24:36","guid":{"rendered":"http:\/\/www.kerneltrick.com\/?p=61"},"modified":"2023-11-16T08:48:55","modified_gmt":"2023-11-16T16:48:55","slug":"function-graph-tool","status":"publish","type":"post","link":"https:\/\/www.kerneltrick.com\/?p=61","title":{"rendered":"Function Graph tool"},"content":{"rendered":"\r\n<p>I wrote a function graphing tool that might be useful for others to use. Sometimes I use graphtoy.com in my work but needed something a little more customized.<br \/>Type in your own expressions and graph the output. <br \/>Written in <a href=\"https:\/\/github.com\/bmx-ng\">BlitzmaxNG<\/a> and uses OpenGL.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-full\"><\/figure>\r\n<p><a href=\"https:\/\/www.kerneltrick.com\/?attachment_id=89\" rel=\"attachment wp-att-89\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-89 aligncenter\" src=\"https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2022\/10\/graphtool03.png\" alt=\"\" width=\"1003\" height=\"527\" srcset=\"https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2022\/10\/graphtool03.png 1003w, https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2022\/10\/graphtool03-300x158.png 300w, https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2022\/10\/graphtool03-768x404.png 768w\" sizes=\"auto, (max-width: 1003px) 100vw, 1003px\" \/><\/a><\/p>\r\n\r\n\r\n\r\n<p>Controls:<br \/>Mouse Wheel and Up\/Down key -&gt; zoom graph<br \/>mouse left click and drag -&gt; pan graph<br \/>&#8216;r&#8217; -&gt; reset graph window<br \/>&#8216;enter&#8217; -&gt; update editing function<br \/>&#8216;escape&#8217; -&gt; quit<\/p>\r\n\r\n\r\n\r\n<p>Notes from update: 0.2<br \/>\u00a0\u00a0\u00a0Added saving png image of graph\u00a0 (ctrl-p)<br \/>\u00a0\u00a0\u00a0Functions can now reference other functions (beware of recursion) EX: &#8220;f1(x)+f2(x)&#8221;<br \/>\u00a0\u00a0\u00a0enable copy and paste with clipboard (ctrl-c, ctrl-v)<br \/>\u00a0\u00a0\u00a0smoothed line drawing<br \/>\u00a0\u00a0\u00a0added popup of built in functions (key F1)<br \/>\u00a0\u00a0\u00a0fixes some bugs.<\/p>\r\n<p>Update: 0.3<br \/>Fixed a few syntax errors<br \/>Added sliders named A,B,C,D, expressions can reference these values.<\/p>\r\n\r\n\r\n\r\n<p><a href=\"https:\/\/www.kerneltrick.com\/download\/fgt\/ExprGraphTool_v0.3.zip\">Download exe and source-code<\/a><\/p>\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<p><a href=\"https:\/\/www.kerneltrick.com\/?attachment_id=90\" rel=\"attachment wp-att-90\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-90\" src=\"https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2023\/11\/egt_sml.gif\" alt=\"\" width=\"497\" height=\"262\" \/><\/a><\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>I wrote a function graphing tool that might be useful for others to use. Sometimes I use graphtoy.com in my work but needed something a little more customized.Type in your own expressions and graph the output. Written in BlitzmaxNG and uses OpenGL. Controls:Mouse Wheel and Up\/Down key -&gt; zoom graphmouse left click and drag -&gt;&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/www.kerneltrick.com\/?p=61\">Read More<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,1],"tags":[9,20],"class_list":["post-61","post","type-post","status-publish","format-standard","hentry","category-programming","category-uncategorized","tag-blitzmax","tag-dusty-old-project"],"_links":{"self":[{"href":"https:\/\/www.kerneltrick.com\/index.php?rest_route=\/wp\/v2\/posts\/61","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kerneltrick.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kerneltrick.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kerneltrick.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kerneltrick.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=61"}],"version-history":[{"count":0,"href":"https:\/\/www.kerneltrick.com\/index.php?rest_route=\/wp\/v2\/posts\/61\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kerneltrick.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=61"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kerneltrick.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=61"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kerneltrick.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=61"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}