{"id":441,"date":"2017-09-14T12:23:19","date_gmt":"2017-09-14T15:23:19","guid":{"rendered":"http:\/\/www.professores.uff.br\/diomarcesarlobao\/?page_id=441"},"modified":"2017-09-14T12:23:19","modified_gmt":"2017-09-14T15:23:19","slug":"factorl-m","status":"publish","type":"page","link":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/factorl-m\/","title":{"rendered":"factorl.m"},"content":{"rendered":"<pre>function [x]=factorl(i)\r\n%factorl(i) gives the factorial of the nearest integer to number 'i'\r\n%'i' should be an integer so we will round it to the nearest one\r\nx=round(i);\r\nif x&gt;2\r\n   for j=x-1:-1:2\r\n      x=x*j;\r\n   end\r\nend<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>function [x]=factorl(i) %factorl(i) gives the factorial of the nearest integer to number &#8216;i&#8217; %&#8217;i&#8217; should be an integer so we will round it to the nearest one x=round(i); if x&gt;2 for j=x-1:-1:2 x=x*j; 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-441","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/441","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=441"}],"version-history":[{"count":1,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/441\/revisions"}],"predecessor-version":[{"id":442,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/441\/revisions\/442"}],"wp:attachment":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/media?parent=441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/categories?post=441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/tags?post=441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}