<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1800123580599742432</id><updated>2024-09-21T16:11:20.432-07:00</updated><title type='text'>HSOL</title><subtitle type='html'>Este blog é dedicado para todos os interessados em tópicos de Mecânica, Resistência dos Materiais, Métodos Numéricos, Vibrações Mecânicas e Projeto de Sistemas Mecânicos. Aqui você encontrará diversos fascículos de exercícios resolvidos disponiveis para baixar que possam lhe auxiliar nos estudos ou no trabalho.&#xa;Aproveitem bastante!&#xa;Um abraço!&#xa;Prof. Me. Hélio Guerrini Filho</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://hsoltec.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1800123580599742432/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://hsoltec.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>HSOL</name><uri>http://www.blogger.com/profile/02613360912859637234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1800123580599742432.post-8526779086594790893</id><published>2017-05-01T17:57:00.001-07:00</published><updated>2017-05-01T17:57:50.623-07:00</updated><title type='text'>MSAT02-Análise de Treliças pelo Método dos Nós. Exemplo 02</title><content type='html'>Este é um link para baixar um exercício de uma treliça isostática plana sendo resolvida pelo método dos nós.&lt;br /&gt;
A treliça é constituída por sete barras e é submetida a duas forças concentradas oblíquas.&lt;br /&gt;
Na primeira parte do exercício são encontradas as reações nos vínculos de apoio, em seguida, as forças normais internas são calculadas.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9z1D_hEyWddBQvzZuM9CVnxZDDterJFaPeS536CvseGyMpQkrX-HKX9DWLwCaw9bq-1iKFi6i6pelcBiiB_nqx0iMvi8E25hYUNlNcKyVaJIsdgCQV6zqztHX5UtuElcIfIgMEGiD89o1/s1600/FB_IMG_1493686572298.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9z1D_hEyWddBQvzZuM9CVnxZDDterJFaPeS536CvseGyMpQkrX-HKX9DWLwCaw9bq-1iKFi6i6pelcBiiB_nqx0iMvi8E25hYUNlNcKyVaJIsdgCQV6zqztHX5UtuElcIfIgMEGiD89o1/s320/FB_IMG_1493686572298.jpg&quot; width=&quot;243&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://docs.google.com/uc?export=download&amp;amp;id=0ByaPabqJew1rOHdWNWpuSEppWDg&quot;&gt;https://docs.google.com/uc?export=download&amp;amp;id=0ByaPabqJew1rOHdWNWpuSEppWDg&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://hsoltec.blogspot.com/feeds/8526779086594790893/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://hsoltec.blogspot.com/2017/05/msat02-analise-de-trelicas-pelo-metodo.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1800123580599742432/posts/default/8526779086594790893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1800123580599742432/posts/default/8526779086594790893'/><link rel='alternate' type='text/html' href='http://hsoltec.blogspot.com/2017/05/msat02-analise-de-trelicas-pelo-metodo.html' title='MSAT02-Análise de Treliças pelo Método dos Nós. Exemplo 02'/><author><name>HSOL</name><uri>http://www.blogger.com/profile/02613360912859637234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9z1D_hEyWddBQvzZuM9CVnxZDDterJFaPeS536CvseGyMpQkrX-HKX9DWLwCaw9bq-1iKFi6i6pelcBiiB_nqx0iMvi8E25hYUNlNcKyVaJIsdgCQV6zqztHX5UtuElcIfIgMEGiD89o1/s72-c/FB_IMG_1493686572298.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1800123580599742432.post-245088707501807952</id><published>2017-02-26T00:23:00.000-08:00</published><updated>2017-03-02T19:13:26.121-08:00</updated><title type='text'>Exercício de Vibrações Mecânica - Resposta em deslocamento de um sistema massa-mola de 1GDL não amortecido em  vibração livre</title><content type='html'>Nesta publicação você poderá baixar o fascículo em PDF de um exercício de Vibração Mecânica, que mostra toda a dedução analítica da resposta em deslocamento de um sistema massa-mola de 1GDL não amortecido em vibração livre.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;MSMVNAL01_Resposta de um sistema de 1GDL não amortecido em vibração livre&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjegMrvSxXTBORCEX0uk8nZM3E_gjsckGUvh-vPI87wlXSrtCC4G0tuENqtnziTKLHnaeBlqCZvRncBKGt4JgcjqGWTBqNh2G3WZnqWWkcaxgg4MhQdurTbXf21fVS2CtWebZyNfZEu2oz2/s1600/figura.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjegMrvSxXTBORCEX0uk8nZM3E_gjsckGUvh-vPI87wlXSrtCC4G0tuENqtnziTKLHnaeBlqCZvRncBKGt4JgcjqGWTBqNh2G3WZnqWWkcaxgg4MhQdurTbXf21fVS2CtWebZyNfZEu2oz2/s1600/figura.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Clique no link abaixo parabaixar o PDF do exercício:&lt;br /&gt;
&lt;a href=&quot;https://docs.google.com/uc?export=download&amp;amp;id=0ByaPabqJew1rSVNrRWVsUXJnbFE&quot;&gt;https://docs.google.com/uc?export=download&amp;amp;id=0ByaPabqJew1rSVNrRWVsUXJnbFE&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://hsoltec.blogspot.com/feeds/245088707501807952/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://hsoltec.blogspot.com/2017/02/exercicio-de-vibracoes-mecanica.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1800123580599742432/posts/default/245088707501807952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1800123580599742432/posts/default/245088707501807952'/><link rel='alternate' type='text/html' href='http://hsoltec.blogspot.com/2017/02/exercicio-de-vibracoes-mecanica.html' title='Exercício de Vibrações Mecânica - Resposta em deslocamento de um sistema massa-mola de 1GDL não amortecido em  vibração livre'/><author><name>HSOL</name><uri>http://www.blogger.com/profile/02613360912859637234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjegMrvSxXTBORCEX0uk8nZM3E_gjsckGUvh-vPI87wlXSrtCC4G0tuENqtnziTKLHnaeBlqCZvRncBKGt4JgcjqGWTBqNh2G3WZnqWWkcaxgg4MhQdurTbXf21fVS2CtWebZyNfZEu2oz2/s72-c/figura.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1800123580599742432.post-1521905502682459670</id><published>2017-02-10T21:18:00.000-08:00</published><updated>2017-02-10T21:23:07.691-08:00</updated><title type='text'>Primeiro exercício resolvido de cálculo de reações de apoio numa viga_MSRAV01 </title><content type='html'>Nesta publicação você poderá baixar o fascículo em PDF do exercício resolvido de uma viga isostática referentes ao vídeo:&lt;br /&gt;
&lt;div&gt;
&lt;b&gt;&lt;i&gt;MSRAV01_Reação de apoio em vigas isostáticas &lt;/i&gt;&lt;/b&gt;(vídeo comentado e resumo).&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbrZz35GdODWjbRezjwQNG_j4nvQE3bJ-_abnwRWPjx6-eswD2jTr8kRSSO11Xj1wW5ofWrTUlKu9g37DR2q_niWBhMYW3lmvq0RSs2uQr8_n-eKXS4uiqxeZRZuT-2I8OX2GnMXAoYm5c/s1600/figura+blog+MSRAV01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbrZz35GdODWjbRezjwQNG_j4nvQE3bJ-_abnwRWPjx6-eswD2jTr8kRSSO11Xj1wW5ofWrTUlKu9g37DR2q_niWBhMYW3lmvq0RSs2uQr8_n-eKXS4uiqxeZRZuT-2I8OX2GnMXAoYm5c/s1600/figura+blog+MSRAV01.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Clique no link abaixo para baixar o PDF do exercício:&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://docs.google.com/uc?export=download&amp;amp;id=0ByaPabqJew1rZjEyVF9wUXlOVzQ&quot;&gt;https://docs.google.com/uc?export=download&amp;amp;id=0ByaPabqJew1rZjEyVF9wUXlOVzQ&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;div&gt;
Palavras chave: Reações de apoio, Reações de apoio em vigas, Equações de equilíbrio, Vigas isostáticas, Equilíbrio do corpo extenso, Equilíbrio do corpo rígido.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hsoltec.blogspot.com/feeds/1521905502682459670/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://hsoltec.blogspot.com/2017/02/primeiro-exercicio-resolvido-de-calculo.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1800123580599742432/posts/default/1521905502682459670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1800123580599742432/posts/default/1521905502682459670'/><link rel='alternate' type='text/html' href='http://hsoltec.blogspot.com/2017/02/primeiro-exercicio-resolvido-de-calculo.html' title='Primeiro exercício resolvido de cálculo de reações de apoio numa viga_MSRAV01 '/><author><name>HSOL</name><uri>http://www.blogger.com/profile/02613360912859637234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbrZz35GdODWjbRezjwQNG_j4nvQE3bJ-_abnwRWPjx6-eswD2jTr8kRSSO11Xj1wW5ofWrTUlKu9g37DR2q_niWBhMYW3lmvq0RSs2uQr8_n-eKXS4uiqxeZRZuT-2I8OX2GnMXAoYm5c/s72-c/figura+blog+MSRAV01.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1800123580599742432.post-8908898463486954548</id><published>2016-11-22T21:34:00.002-08:00</published><updated>2017-03-02T20:36:27.191-08:00</updated><title type='text'>Exercício resolvido de treliças planas pelo método dos nós - vídeos MSAT01</title><content type='html'>Neste link você encontrará o fascículo em PDF de um exercício resolvido de uma treliça plana referente aos videos: MSAT01 - Análise de Treliças - Método dos nós Ex.01 parte 1 e 2 do canal MECSOLTECH.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2o6nzBoYnd7ZchBjiwlE0QLiraidpjVcD1xj1gvevVe9NQCr1mxSO0w_k3-TWU-NWbjImUoraajP5Yr8NfZ-Ce5B3IEL997yk8-UyUU2kC59_hCMxE5fmtkPxC_lmk-g3WWrvzVOP3TTE/s1600/treli%25C3%25A7a+01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;272&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2o6nzBoYnd7ZchBjiwlE0QLiraidpjVcD1xj1gvevVe9NQCr1mxSO0w_k3-TWU-NWbjImUoraajP5Yr8NfZ-Ce5B3IEL997yk8-UyUU2kC59_hCMxE5fmtkPxC_lmk-g3WWrvzVOP3TTE/s320/treli%25C3%25A7a+01.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Exercício de treliça plana:&lt;br /&gt;
&lt;a href=&quot;https://docs.google.com/uc?export=download&amp;amp;id=0ByaPabqJew1rbF9hbjZZakVEVFU&quot;&gt;https://docs.google.com/uc?export=download&amp;amp;id=0ByaPabqJew1rbF9hbjZZakVEVFU&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Palavras chave: Treliça Plana, Método dos Nós Treliça, Equilíbrio de um Nó, Equações de Equilíbrio, Truss, Method of Joints Example,</content><link rel='replies' type='application/atom+xml' href='http://hsoltec.blogspot.com/feeds/8908898463486954548/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://hsoltec.blogspot.com/2016/11/link-para-download-do-exercicio-01-de.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1800123580599742432/posts/default/8908898463486954548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1800123580599742432/posts/default/8908898463486954548'/><link rel='alternate' type='text/html' href='http://hsoltec.blogspot.com/2016/11/link-para-download-do-exercicio-01-de.html' title='Exercício resolvido de treliças planas pelo método dos nós - vídeos MSAT01'/><author><name>HSOL</name><uri>http://www.blogger.com/profile/02613360912859637234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2o6nzBoYnd7ZchBjiwlE0QLiraidpjVcD1xj1gvevVe9NQCr1mxSO0w_k3-TWU-NWbjImUoraajP5Yr8NfZ-Ce5B3IEL997yk8-UyUU2kC59_hCMxE5fmtkPxC_lmk-g3WWrvzVOP3TTE/s72-c/treli%25C3%25A7a+01.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1800123580599742432.post-6961445196759813408</id><published>2012-02-19T11:28:00.010-08:00</published><updated>2012-02-20T09:55:15.928-08:00</updated><title type='text'>Rotina python p/ Inversão de Matrizes pelo método de fatoração QR</title><content type='html'>&lt;span style=&quot;font-weight: normal; font-size: 100%; &quot;&gt;Aqui está postado o código em python 2.6.5 que faz a inversão de uma matriz &lt;/span&gt;&lt;span style=&quot;font-weight: normal; font-size: 100%; &quot;&gt;inversível.&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;# -*- coding: cp1252 -*-&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;# Inverção da matriz [K] pelo método de fatoração QR&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;from numpy import *&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;# Matriz [K]&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;K = array([[3, 1, 0],[1, 3, 1],[0, 1, 3]],float)&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;print &#39;Matriz [K] = &#39;&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;print K&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;# Ordem da matriz&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;n=len(K) # conta o número de colunas da matriz [K]&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;# Inicia Pg&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;&lt;div&gt;Pg=zeros([n,n],float)&lt;/div&gt;&lt;div&gt;&lt;div&gt;for i in range(n):&lt;/div&gt;&lt;div&gt;____Pg[i][i]=1&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;# Fatoração QR (Givens)&lt;/div&gt;&lt;div style=&quot;font-weight: normal; &quot;&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;for i in range(n-1):&lt;/div&gt;&lt;div&gt;____for h in range(i+1,n):&lt;/div&gt;&lt;div&gt;________if (K[i][i])**2+(K[h][i])**2==0:&lt;/div&gt;&lt;div&gt;____________cs=1&lt;/div&gt;&lt;div&gt;____________sn=0&lt;/div&gt;&lt;div&gt;________else:&lt;/div&gt;&lt;div&gt;____________# Determina cossenos e senos&lt;/div&gt;&lt;div&gt;____________cs=(K[i][i])/((K[i][i])**2+(K[h][i])**2)**0.5&lt;/div&gt;&lt;div&gt;____________sn=(K[h][i])/((K[i][i])**2+(K[h][i])**2)**0.5&lt;/div&gt;&lt;div&gt;________for j in range(n):&lt;/div&gt;&lt;div&gt;____________k1,k2 = 0, 0&lt;/div&gt;&lt;div&gt;____________k1,k2 = K[i][j], K[h][j]&lt;/div&gt;&lt;div&gt;____________# Cálculo da matriz ~K ( vai transformando K em Sg)&lt;/div&gt;&lt;div&gt;____________K[i][j] = k1*cs + k2*sn&lt;/div&gt;&lt;div&gt;____________K[h][j] = -k1*sn + k2*cs&lt;/div&gt;&lt;div&gt;____________# Cálcula Pg transposto&lt;/div&gt;&lt;div&gt;____________p1,p2 = 0, 0&lt;/div&gt;&lt;div&gt;____________p1,p2 = Pg[i][j], Pg[h][j]&lt;/div&gt;&lt;div&gt;____________Pg[i][j] = p1*cs + p2*sn&lt;/div&gt;&lt;div&gt;____________Pg[h][j] = -p1*sn + p2*cs&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;# Obtém a matriz inversa de [K] armazenando cada vetor coluna ci resultante da solução&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;#do sistema Sg.ci=li onde li é o vetor linha de Pg.&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;# No código abaixo K foi tranformado em Sg.&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;&lt;span style=&quot;font-size: 100%; &quot;&gt;&lt;span style=&quot;font-size: 100%; &quot;&gt;&lt;div&gt;R=zeros([n,1],float) &lt;/div&gt;&lt;div&gt;for k in range(n):&lt;/div&gt;&lt;div&gt;____for i in range(n):&lt;/div&gt;&lt;div&gt;________R[i][0]=Pg[i][k]&lt;/div&gt;&lt;div&gt;____U=zeros([n,1],float)&lt;/div&gt;&lt;div&gt;____for i in range(n):&lt;/div&gt;&lt;div&gt;________SS=0&lt;/div&gt;&lt;div&gt;________for j in range(n):&lt;/div&gt;&lt;div&gt;____________SS=SS+(K[n-1-i][n-1-j]*U[n-1-j])&lt;/div&gt;&lt;div&gt;________U[n-1-i]=(R[n-1-i]-SS)/K[n-1-i][n-1-i]&lt;/div&gt;&lt;div&gt;____for i in range(n):&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 100%; &quot;&gt;________Pg[i][k]=U[i][0]&lt;/span&gt;&lt;span style=&quot;font-size: 100%; &quot;&gt;# Matriz inversa [K]-1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;print Pg&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;# Obs: Ao copiar o arquivo, antes de rodar a rotina é necessário editar o código substituindo cada underline por um espaço.&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; line-height: normal; &quot;&gt;&lt;span style=&quot;font-weight: normal; &quot;&gt;Para que esta rotina funcione é necessário que vc tenha instalado em seu computador o compilador &lt;/span&gt;&lt;b&gt;python&lt;/b&gt;&lt;span style=&quot;font-weight: normal; &quot;&gt; e o modulo de ferramentas &lt;/span&gt;&lt;b&gt;numpy&lt;/b&gt;. Ambos podem ser baixados do site&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; line-height: normal; &quot;&gt;&lt;a href=&quot;http://www.python.org/&quot;&gt;http://www.python.org&lt;/a&gt;.&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;Posteriormente, vou editar esta publicação adicionando a teoria que fundamenta o código desta rotina.&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hsoltec.blogspot.com/feeds/6961445196759813408/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://hsoltec.blogspot.com/2012/02/inversao-de-matrizes-pelo-metodo-de.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1800123580599742432/posts/default/6961445196759813408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1800123580599742432/posts/default/6961445196759813408'/><link rel='alternate' type='text/html' href='http://hsoltec.blogspot.com/2012/02/inversao-de-matrizes-pelo-metodo-de.html' title='Rotina python p/ Inversão de Matrizes pelo método de fatoração QR'/><author><name>HSOL</name><uri>http://www.blogger.com/profile/02613360912859637234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1800123580599742432.post-9017014811657314358</id><published>2012-02-11T16:26:00.002-08:00</published><updated>2012-02-20T10:45:54.631-08:00</updated><title type='text'>Rotina python para solução de equações de 1° e 2° grau</title><content type='html'>&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-variant: normal; font-weight: normal; line-height: normal; font-style: normal; &quot;&gt;Bom! &lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-variant: normal; font-weight: normal; line-height: normal; font-style: normal; &quot;&gt;Está &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_0&quot;&gt;postagem&lt;/span&gt; é a primeira que faço no meu blog.&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-variant: normal; font-weight: normal; line-height: normal; font-style: normal; &quot;&gt;&lt;div&gt;Digamos que ela é o marco inicial de uma série de postagens &lt;span style=&quot;font-size: 100%; &quot;&gt;que compõem parte do conhecimento técnico que existe dentro da minha cabeça.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-variant: normal; font-weight: normal; line-height: normal; font-style: normal; &quot;&gt;Tá certo! vamos &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_2&quot;&gt;direto&lt;/span&gt; ao assunto.&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-variant: normal; font-weight: normal; line-height: normal; font-style: normal; &quot;&gt;Logo abaixo vou postar uma rotina em P&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_4&quot;&gt;ython&lt;/span&gt; que resolve equações de 1° e 2° grau. &lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-variant: normal; font-weight: normal; line-height: normal; font-style: normal; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-variant: normal; font-weight: normal; line-height: normal; font-style: normal; &quot;&gt;A versão do compilador Python que vou utilizar é a 2.6.5.&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-variant: normal; font-weight: normal; line-height: normal; font-style: normal; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-variant: normal; font-weight: normal; line-height: normal; font-style: normal; &quot;&gt;1° Passo: Abra o compilador Python 2.6.5&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-variant: normal; font-weight: normal; line-height: normal; font-style: normal; &quot;&gt;2° Passo: Abra uma nova janela clicando em File &amp;gt; New Window&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-variant: normal; font-weight: normal; line-height: normal; font-style: normal; &quot;&gt;3° Passo: Escreva o seguinte código&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span &gt;&lt;i&gt;&lt;div&gt;# -*- coding: cp1252 -*-&lt;/div&gt;&lt;div&gt;##################### Solução de equações de 1° e 2° grau ######################&lt;/div&gt;&lt;div&gt;print &#39;Digite 1 se a equação é de 1°grau e 2 se é de 2° grau&#39;&lt;/div&gt;&lt;div&gt;eq = raw_input(&#39;Entre com o número que define o tipo de equação: &#39;)&lt;/div&gt;&lt;div&gt;if eq==&#39;1&#39; or eq==&#39;2&#39;:&lt;/div&gt;&lt;div&gt;____eq=int(eq) #Converte o texto em valor numérico inteiro&lt;/div&gt;&lt;div&gt;____if eq==1:&lt;/div&gt;&lt;div&gt;________print &#39;Formato geral da equação do 1° grau ax+b=0&#39;&lt;/div&gt;&lt;div&gt;________a=raw_input(&#39;Digite o valor de a: &#39;)&lt;/div&gt;&lt;div&gt;________a=float(a) #Converte o texto num valor numérico real&lt;/div&gt;&lt;div&gt;________b=raw_input(&#39;Digite o valor de b: &#39;)&lt;/div&gt;&lt;div&gt;________b=float(b) #Converte o texto num valor numérico real&lt;/div&gt;&lt;div&gt;________x = -b/a&lt;/div&gt;&lt;div&gt;________print &#39;x = &#39;, x&lt;/div&gt;&lt;div&gt;____elif eq==2:&lt;/div&gt;&lt;div&gt;________print &#39;Formato geral da equação do 2° grau ax²+bx+c=0&#39;&lt;/div&gt;&lt;div&gt;________a=raw_input(&#39;Digite o valor de a: &#39;)&lt;/div&gt;&lt;div&gt;________a=float(a) #Converte o texto num valor numérico real&lt;/div&gt;&lt;div&gt;________b=raw_input(&#39;Digite o valor de b: &#39;)&lt;/div&gt;&lt;div&gt;________b=float(b) #Converte o texto num valor numérico real&lt;/div&gt;&lt;div&gt;________c=raw_input(&#39;Digite o valor de c: &#39;)&lt;/div&gt;&lt;div&gt;________c=float(c) #Converte o texto num valor numérico real&lt;/div&gt;&lt;div&gt;________# Cálculo do valor delta&lt;/div&gt;&lt;div&gt;________delta = b**2 - 4*a*c&lt;/div&gt;&lt;div&gt;________if delta&amp;gt;=0:&lt;/div&gt;&lt;div&gt;____________x1=(-b-delta**0.5)/(2*a)&lt;/div&gt;&lt;div&gt;____________x2=(-b+delta**0.5)/(2*a)&lt;/div&gt;&lt;div&gt;____________print &#39;x1 = &#39;, x1&lt;/div&gt;&lt;div&gt;____________print &#39;x2 = &#39;, x2&lt;/div&gt;&lt;div&gt;________elif delta&amp;lt;0:&lt;/div&gt;&lt;div&gt;____________raizdelta=complex(0,abs(delta))&lt;/div&gt;&lt;div&gt;____________x1=(-b-raizdelta)/(2*a)&lt;/div&gt;&lt;div&gt;____________x2=(-b+raizdelta)/(2*a)&lt;/div&gt;&lt;div&gt;____________print &#39;Raízes complexas&#39;&lt;/div&gt;&lt;div&gt;____________print &#39;x1 = &#39;, x1&lt;/div&gt;&lt;div&gt;____________print &#39;x2 = &#39;, x2&lt;/div&gt;&lt;div&gt;else:&lt;/div&gt;&lt;div&gt;____print &#39;Entrada não válida&#39;&lt;/div&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-variant: normal; font-weight: normal; line-height: normal; font-style: normal; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-variant: normal; font-weight: normal; line-height: normal; font-style: normal; &quot;&gt;Obs.: Ao copiar a rotina, antes de usá-la, substitua cada underline por um espaço. &lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-variant: normal; font-weight: normal; line-height: normal; font-style: normal; &quot;&gt;A rotina e seus resultados tem o seguinte formato:&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-variant: normal; font-weight: normal; line-height: normal; font-style: normal; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 100%; font-variant: normal; font-weight: normal; line-height: normal; font-style: normal; &quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmm8Vy80P_9ALzOIta-TK9EcEgfEjZIPXC4Y-oiQWRCgtUuHNceqtjd3_kIwI_C8Cyfwo3YqaaIwzdRjsyjVRd4Yah4oBC5XeZNYc-I9KFA71rkDoQY4_337wZYhQM1aP0qfmKKJj2lQze/s1600/eq12.JPG&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmm8Vy80P_9ALzOIta-TK9EcEgfEjZIPXC4Y-oiQWRCgtUuHNceqtjd3_kIwI_C8Cyfwo3YqaaIwzdRjsyjVRd4Yah4oBC5XeZNYc-I9KFA71rkDoQY4_337wZYhQM1aP0qfmKKJj2lQze/s320/eq12.JPG&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5711290869558628866&quot; style=&quot;cursor: pointer; width: 320px; height: 174px; &quot; /&gt;&lt;/a&gt; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hsoltec.blogspot.com/feeds/9017014811657314358/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://hsoltec.blogspot.com/2012/02/rotina-python-para-solucao-de-equacoes.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1800123580599742432/posts/default/9017014811657314358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1800123580599742432/posts/default/9017014811657314358'/><link rel='alternate' type='text/html' href='http://hsoltec.blogspot.com/2012/02/rotina-python-para-solucao-de-equacoes.html' title='Rotina python para solução de equações de 1° e 2° grau'/><author><name>HSOL</name><uri>http://www.blogger.com/profile/02613360912859637234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmm8Vy80P_9ALzOIta-TK9EcEgfEjZIPXC4Y-oiQWRCgtUuHNceqtjd3_kIwI_C8Cyfwo3YqaaIwzdRjsyjVRd4Yah4oBC5XeZNYc-I9KFA71rkDoQY4_337wZYhQM1aP0qfmKKJj2lQze/s72-c/eq12.JPG" height="72" width="72"/><thr:total>0</thr:total></entry></feed>