{"id":2619,"date":"2010-12-03T14:02:58","date_gmt":"2010-12-03T14:02:58","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/2010\/12\/03\/exploring-trigonometric-functions\/"},"modified":"2010-12-03T14:02:58","modified_gmt":"2010-12-03T14:02:58","slug":"exploring-trigonometric-functions","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2010\/12\/03\/exploring-trigonometric-functions\/","title":{"rendered":"Exploring Trigonometric Functions"},"content":{"rendered":"<div xmlns:mwsh=\"https:\/\/www.mathworks.com\/namespace\/mcode\/v1\/syntaxhighlight.dtd\" class=\"content\">\r\n   <introduction><\/introduction>\r\n   <p><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/911\">Brett<\/a>'s Pick this week is <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/22664-trigdemo\">TrigDemo<\/a>, by <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/17055\">Matt Fig<\/a>.\r\n   <\/p>\r\n   <p>Matt is one of the more prolific (and popular) authors on the File Exchange; his 36 submissions (to date) have been downloaded\r\n      a total of 1741 times in the past 30 days. Today's Pick is a very simple, very cool tool for exploring trigonometric functions.\r\n      With an easy-to-use GUI, one can plot any equation of the form y(x) = A trig(Bx + C) + D, where \"trig\" can be any one of:\r\n      {'sine', 'cosine', 'tangent', 'cosecant', 'secant', 'cotangent'}. Then, with easy-to-use radio buttons and sliders, one can\r\n      interactively change that trigonometric function, or see the effects of changing any of the variables A, B, C, or D.\r\n   <\/p>\r\n   <p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/pick\/..\/images\/pick\/trigdemo.gif\"> <\/p>\r\n   <p>I like to think that MATLAB has a role in teaching mathematics at a variety of levels. Matt's GUI helps trigonometry students\r\n      visualize and master the fundamentals (and provides a refresher for those of us who took trigonometry longer ago than we care\r\n      to admit!) Simply, a very nice utility.\r\n   <\/p>\r\n   <p>Take TrigDemo for a test spin, and <a href=\"https:\/\/blogs.mathworks.com\/pick\/?p=2619#respond\">let us know what you think<\/a>, or leave a comment for Matt <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/22664-trigdemo#Comments\">here<\/a>.\r\n   <\/p><script language=\"JavaScript\">\r\n<!--\r\n\r\n    function grabCode_99c4eb99acf24b9b8ca28f79abd1cb7d() {\r\n        \/\/ Remember the title so we can use it in the new page\r\n        title = document.title;\r\n\r\n        \/\/ Break up these strings so that their presence\r\n        \/\/ in the Javascript doesn't mess up the search for\r\n        \/\/ the MATLAB code.\r\n        t1='99c4eb99acf24b9b8ca28f79abd1cb7d ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' 99c4eb99acf24b9b8ca28f79abd1cb7d';\r\n    \r\n        b=document.getElementsByTagName('body')[0];\r\n        i1=b.innerHTML.indexOf(t1)+t1.length;\r\n        i2=b.innerHTML.indexOf(t2);\r\n \r\n        code_string = b.innerHTML.substring(i1, i2);\r\n        code_string = code_string.replace(\/REPLACE_WITH_DASH_DASH\/g,'--');\r\n\r\n        \/\/ Use \/x3C\/g instead of the less-than character to avoid errors \r\n        \/\/ in the XML parser.\r\n        \/\/ Use '\\x26#60;' instead of '<' so that the XML parser\r\n        \/\/ doesn't go ahead and substitute the less-than character. \r\n        code_string = code_string.replace(\/\\x3C\/g, '\\x26#60;');\r\n\r\n        author = 'Brett Shoelson';\r\n        copyright = 'Copyright 2010 The MathWorks, Inc.';\r\n\r\n        w = window.open();\r\n        d = w.document;\r\n        d.write('<pre>\\n');\r\n        d.write(code_string);\r\n\r\n        \/\/ Add author and copyright lines at the bottom if specified.\r\n        if ((author.length > 0) || (copyright.length > 0)) {\r\n            d.writeln('');\r\n            d.writeln('%%');\r\n            if (author.length > 0) {\r\n                d.writeln('% _' + author + '_');\r\n            }\r\n            if (copyright.length > 0) {\r\n                d.writeln('% _' + copyright + '_');\r\n            }\r\n        }\r\n\r\n        d.write('<\/pre>\\n');\r\n      \r\n      d.title = title + ' (MATLAB code)';\r\n      d.close();\r\n      }   \r\n      \r\n-->\r\n<\/script><p style=\"text-align: right; font-size: xx-small; font-weight:lighter;   font-style: italic; color: gray\"><br><a href=\"javascript:grabCode_99c4eb99acf24b9b8ca28f79abd1cb7d()\"><span style=\"font-size: x-small;        font-style: italic;\">Get \r\n            the MATLAB code \r\n            <noscript>(requires JavaScript)<\/noscript><\/span><\/a><br><br>\r\n      Published with MATLAB&reg; 7.11<br><\/p>\r\n<\/div>\r\n<!--\r\n99c4eb99acf24b9b8ca28f79abd1cb7d ##### SOURCE BEGIN #####\r\n%% Exploring Trigonometric Functions\r\n%% \r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/911 Brett>'s Pick this week is\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/22664-trigdemo TrigDemo>, by\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/17055 Matt Fig>.\r\n\r\n%%\r\n% Matt is one of the more prolific (and popular) authors on the File\r\n% Exchange; his 36 submissions (to date) have been downloaded a total of\r\n% 1741 times in the past 30 days. Today's Pick is a very simple, very cool\r\n% tool for exploring trigonometric functions. With an easy-to-use GUI, one\r\n% can plot any equation of the form y(x) = A trig(Bx + C) + D, where \"trig\"\r\n% can be any one of: {'sine', 'cosine', 'tangent', 'cosecant', 'secant',\r\n% 'cotangent'}. Then, with easy-to-use radio buttons and sliders, one can interactively\r\n% change that trigonometric function, or see the effects of changing any of\r\n% the variables A, B, C, or D.\r\n\r\n%%\r\n% \r\n% <<https:\/\/blogs.mathworks.com\/pick\/..\/images\/pick\/trigdemo.gif>>\r\n% \r\n\r\n%% \r\n% I like to think that MATLAB has a role in teaching mathematics at a\r\n% variety of levels. Matt's GUI helps trigonometry students visualize and\r\n% master the fundamentals (and provides a refresher for those of us who took trigonometry longer ago than we care to admit!)\r\n% Simply, a very nice utility.\r\n\r\n%%\r\n% Take TrigDemo for a test spin, and \r\n% <https:\/\/blogs.mathworks.com\/pick\/?p=2619#respond let us know what you think>, or leave a\r\n% comment for Matt <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/22664-trigdemo#Comments here>.\r\n\r\n##### SOURCE END ##### 99c4eb99acf24b9b8ca28f79abd1cb7d\r\n-->","protected":false},"excerpt":{"rendered":"<p>\r\n   \r\n   Brett's Pick this week is TrigDemo, by Matt Fig.\r\n   \r\n   Matt is one of the more prolific (and popular) authors on the File Exchange; his 36 submissions (to date) have been downloaded\r\n   ... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2010\/12\/03\/exploring-trigonometric-functions\/\">read more >><\/a><\/p>","protected":false},"author":34,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2619"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/users\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=2619"}],"version-history":[{"count":0,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2619\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=2619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=2619"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=2619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}