{"id":3004,"date":"2018-02-14T14:34:06","date_gmt":"2018-02-14T19:34:06","guid":{"rendered":"https:\/\/blogs.mathworks.com\/cleve\/?p=3004"},"modified":"2018-02-14T14:34:06","modified_gmt":"2018-02-14T19:34:06","slug":"happy-valentines-day","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/cleve\/2018\/02\/14\/happy-valentines-day\/","title":{"rendered":"Happy Valentine&#8217;s Day"},"content":{"rendered":"<div class=\"content\"><!--introduction--><!--\/introduction--><h3>Contents<\/h3><div><ul><li><a href=\"#ffe5e134-adfc-437c-a8b1-5b1d19bb0f5a\">Thanks<\/a><\/li><\/ul><\/div><pre class=\"codeinput\">   ezplot(<span class=\"string\">'(x^2+y^2-1)^3 = x^2*y^3'<\/span>, <span class=\"keyword\">...<\/span>\r\n           [-1.5,1.5,-1.2,1.5])\r\n   colormap([.5 .2 .2])\r\n<\/pre><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/cleve\/files\/valentine_blog_01.png\" alt=\"\"> <h4>Thanks<a name=\"ffe5e134-adfc-437c-a8b1-5b1d19bb0f5a\"><\/a><\/h4><p>Edward Scheinerman, <i>The Mathematics Lover's Companion<\/i>, Yale University Press, 2017 <a href=\"https:\/\/yalebooks.yale.edu\/book\/9780300223002\/mathematics-lovers-companion\">https:\/\/yalebooks.yale.edu\/book\/9780300223002\/mathematics-lovers-companion<\/a><\/p><script language=\"JavaScript\"> <!-- \r\n    function grabCode_eaf18f6e8bbb4a9eb58892ad89366290() {\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='eaf18f6e8bbb4a9eb58892ad89366290 ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' eaf18f6e8bbb4a9eb58892ad89366290';\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        copyright = 'Copyright 2018 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 copyright line at the bottom if specified.\r\n        if (copyright.length > 0) {\r\n            d.writeln('');\r\n            d.writeln('%%');\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     --> <\/script><p style=\"text-align: right; font-size: xx-small; font-weight:lighter;   font-style: italic; color: gray\"><br><a href=\"javascript:grabCode_eaf18f6e8bbb4a9eb58892ad89366290()\"><span style=\"font-size: x-small;        font-style: italic;\">Get \r\n      the MATLAB code <noscript>(requires JavaScript)<\/noscript><\/span><\/a><br><br>\r\n      Published with MATLAB&reg; R2018a<br><\/p><\/div><!--\r\neaf18f6e8bbb4a9eb58892ad89366290 ##### SOURCE BEGIN #####\r\n%% Happy Valentine's Day\r\n\r\n%%\r\n\r\n   ezplot('(x^2+y^2-1)^3 = x^2*y^3', ...\r\n           [-1.5,1.5,-1.2,1.5])\r\n   colormap([.5 .2 .2])\r\n   \r\n%% Thanks\r\n%\r\n% Edward Scheinerman,\r\n% _The Mathematics Lover's Companion_, \r\n% Yale University Press, 2017\r\n% <https:\/\/yalebooks.yale.edu\/book\/9780300223002\/mathematics-lovers-companion>\r\n##### SOURCE END ##### eaf18f6e8bbb4a9eb58892ad89366290\r\n-->","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img decoding=\"async\"  class=\"img-responsive\" src=\"https:\/\/blogs.mathworks.com\/cleve\/files\/valentine_blog_01.png\" onError=\"this.style.display ='none';\" \/><\/div><p>ContentsThanks   ezplot('(x^2+y^2-1)^3 = x^2*y^3', ...\r\n           [-1.5,1.5,-1.2,1.5])\r\n   colormap([.5 .2 .2])\r\n ThanksEdward Scheinerman, The Mathematics Lover's Companion, Yale University Press,... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/cleve\/2018\/02\/14\/happy-valentines-day\/\">read more >><\/a><\/p>","protected":false},"author":78,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,23],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/posts\/3004"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/users\/78"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/comments?post=3004"}],"version-history":[{"count":1,"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/posts\/3004\/revisions"}],"predecessor-version":[{"id":3006,"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/posts\/3004\/revisions\/3006"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/media?parent=3004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/categories?post=3004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/tags?post=3004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}