{"id":367,"date":"2017-09-14T11:59:25","date_gmt":"2017-09-14T14:59:25","guid":{"rendered":"http:\/\/www.professores.uff.br\/diomarcesarlobao\/?page_id=367"},"modified":"2017-09-14T11:59:25","modified_gmt":"2017-09-14T14:59:25","slug":"cramer-m","status":"publish","type":"page","link":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/cramer-m\/","title":{"rendered":"cramer.m"},"content":{"rendered":"<pre>function x = cramer(A, b)\r\n\r\n% cramer  Solve the system Ax=b.\r\n% The matrix A is square and invertible.\r\n%\r\n% x = cramer(A, b) solves the square system Ax = b.\r\n\r\n[m, n] = size(A);\r\nif m ~= n\r\n  error('Matrix is not square.') \r\nend\r\nif det(A) == 0\r\n  error('Matrix is singular.')\r\nend\r\nfor j = 1:n\r\n  B = A;\r\n  B(:, j) = b;\r\n  x(j) = det(B) \/ det(A);\r\nend\r\nx = x';<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>function x = cramer(A, b) % cramer Solve the system Ax=b. % The matrix A is square and invertible. % % x = cramer(A, b) solves the square system Ax = b. [m, n] = size(A); if m ~= n error(&#8216;Matrix is not square.&#8217;) end if det(A) == 0 error(&#8216;Matrix is singular.&#8217;) end for j [&hellip;]<\/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-367","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/367","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=367"}],"version-history":[{"count":1,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/367\/revisions"}],"predecessor-version":[{"id":368,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/367\/revisions\/368"}],"wp:attachment":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/media?parent=367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/categories?post=367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/tags?post=367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}