{"id":439,"date":"2017-09-14T12:22:48","date_gmt":"2017-09-14T15:22:48","guid":{"rendered":"http:\/\/www.professores.uff.br\/diomarcesarlobao\/?page_id=439"},"modified":"2017-09-14T12:22:48","modified_gmt":"2017-09-14T15:22:48","slug":"mysine-m","status":"publish","type":"page","link":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/mysine-m\/","title":{"rendered":"mysine.m"},"content":{"rendered":"<pre>function [x]=mysine(theta,nterms)\r\n%[x]=mysine(theta,nterms)  returns the sine of 'theta' (radians) evaluated\r\n%                 using 'n' (terms) of a McLaurin series\r\nx=theta;\r\nif nterms&gt;1\r\n   sig=1;\r\n   for i=2:nterms\r\n      sig=-1*sig;\r\n      term=theta^(2*i-1)\/factorl(2*i-1);\r\n      x=x+sig*term;\r\n   end\r\nend\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>function [x]=mysine(theta,nterms) %[x]=mysine(theta,nterms) returns the sine of &#8216;theta&#8217; (radians) evaluated % using &#8216;n&#8217; (terms) of a McLaurin series x=theta; if nterms&gt;1 sig=1; for i=2:nterms sig=-1*sig; term=theta^(2*i-1)\/factorl(2*i-1); x=x+sig*term; end end<\/p>\n","protected":false},"author":22,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[],"tags":[],"class_list":["post-439","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/comments?post=439"}],"version-history":[{"count":1,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/439\/revisions"}],"predecessor-version":[{"id":440,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/439\/revisions\/440"}],"wp:attachment":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/media?parent=439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/categories?post=439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/tags?post=439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}