<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">as dicas foram uteis e muito obrigado, muito embora quando eu dou o comando</blockquote><div><br>
</div><div>r=lm(y~poly(x,5)) </div><div><br></div><div>e depois dou a equação pelos coeficientes</div><div><br></div><div><div>b0=r$coefficient[1]</div><div>b1=r$coefficient[2]</div><div>b2=r$coefficient[3]</div><div>b3=r$coefficient[4]</div>
<div>b4=r$coefficient[5]</div><div>b5=r$coefficient[6]</div></div></div><br><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:9.600000381469727px;background-color:rgb(255,255,255)">m_teste=b0+b1*x+b2*x^2+b3*x^3+</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:9.600000381469727px;background-color:rgb(255,255,255)">b4*x^4+b5*x^5</span></div>
<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:9.600000381469727px;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:9.600000381469727px;background-color:rgb(255,255,255)">o m_teste extrapola de novo</span></div>
<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:9.600000381469727px;background-color:rgb(255,255,255)"><br></span></div><div><font color="#222222" face="arial, sans-serif" size="1">será que estou extraindo os coeficientes de forma correta?</font></div>
<div><font color="#222222" face="arial, sans-serif" size="1">e aplicando a equação de forma correta?</font></div><div><font color="#222222" face="arial, sans-serif" size="1"><br></font></div><div><font color="#222222" face="arial, sans-serif" size="1">vocês podem me dar outra luz?</font></div>
<div><font color="#222222" face="arial, sans-serif" size="1"><br></font></div><div><font color="#222222" face="arial, sans-serif" size="1">obrigado</font></div>