<div dir="ltr">Obrigado Benilton pela informação.<div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div>[ ],<br>Pedro Rafael Diniz Marinho.</div>
<br><br><div class="gmail_quote">2013/7/5 beniltoncarvalho [via R-br] <span dir="ltr"><<a href="mailto:ml-node+s2285057n4659923h90@n4.nabble.com" target="_blank">ml-node+s2285057n4659923h90@n4.nabble.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
imagine o tanto de aproximacoes nao aconteceram quando vc chamou
<br>integrate()... experimente
<br><br>all.equal(integrate(f=fdp_expweibull,par=c(1,1,1),0,Inf)$value, 1)
<br><br>b
<br><br>Em 5 de julho de 2013 18:23, Pedro Rafael
<br><<a href="http://user/SendEmail.jtp?type=node&node=4659923&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> escreveu:
<div><div class="im"><br>> Acho que percebi. Convertendo o resultado para carácter o valor não é 1.
<br>>
<br>> as.character(integrate(f=fdp_expweibull,par=c(1,1,1),0,Inf)$value)
<br>>
<br>> [ ],
<br>> Pedro Rafael Diniz Marinho.
<br>>
<br>>
<br></div>> Em 5 de julho de 2013 18:00, Pedro Rafael <<a href="http://user/SendEmail.jtp?type=node&node=4659923&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>>
<br><div class="im">> escreveu:
<br>>
<br>>> Pessoal eu tenho uma dúvida. Considere o código abaixo:
<br>>>
<br>>> function(par,x){
<br>>> beta = par[1]
<br>>> c = par[2]
<br>>> a = par[3]
<br>>> a * beta * c * exp(-(beta*x)^c) * (beta*x)^(c-1) * (1 -
<br>>> exp(-(beta*x)^c))^(a-1)
<br>>> }
<br>>>
<br>>> integrate(f=fdp_expweibull,par=c(1,1,1),0,Inf)$value == 1
<br>>>
<br>>> Porque o resultado é false?
<br>>>
<br>>> [ ],
<br>>> Pedro Rafael Diniz Marinho.
<br>>
<br>>
<br>>
<br></div>> _______________________________________________
<br>> R-br mailing list
<br>> <a href="http://user/SendEmail.jtp?type=node&node=4659923&i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br>> <a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" rel="nofollow" link="external" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>> Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" rel="nofollow" link="external" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código
<br>> mínimo reproduzível.
</div>_______________________________________________
<br>R-br mailing list
<br><a href="http://user/SendEmail.jtp?type=node&node=4659923&i=3" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" rel="nofollow" link="external" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" rel="nofollow" link="external" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.
<br>
<br>
<br>
<hr noshade size="1" color="#cccccc">
<div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
<a href="http://r-br.2285057.n4.nabble.com/R-br-Duvida-Operador-Logico-tp4659921p4659923.html" target="_blank">http://r-br.2285057.n4.nabble.com/R-br-Duvida-Operador-Logico-tp4659921p4659923.html</a>
</div>
<div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To unsubscribe from R-br, <a href="http://r-br.2285057.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3357982&code=cGVkcm8ucmFmYWVsLm1hcmluaG9AZ21haWwuY29tfDMzNTc5ODJ8NTAyMjI0MDYw" target="_blank">click here</a>.<br>
<a href="http://r-br.2285057.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank">NAML</a>
</div></blockquote></div><br></div>