WolfmanZ Posted January 2, 2013 at 07:57 PM Report #489297 Posted January 2, 2013 at 07:57 PM (edited) Boas Tou a fazer um programa e o problema é que os numeros sao tao pequenos que o compilador nao os reconhece acho eu so mostra -1.#IND00 for(l=0;l<contNV;l++){ pM=1; for(j=2;j<32;j++){ pM = pM*(1/sqrt(2*3.141592653589793*vVM[j]) )*exp(-(pow((matrizNV[l][j]-vMM[j]),2) / (2*vVM[j] ))) ; } printf("%f",pM); } Todos os dados sao floats esta é a operaçao o pM o input alguma maneira de contornar isto? Edited January 2, 2013 at 08:32 PM by WolfmanZ
HappyHippyHippo Posted January 2, 2013 at 09:01 PM Report #489301 Posted January 2, 2013 at 09:01 PM printf("%e",pM); IRC : sim, é algo que ainda existe >> #p@p Portugol Plus
pmg Posted January 2, 2013 at 10:48 PM Report #489311 Posted January 2, 2013 at 10:48 PM Todos os dados sao floats Ugh! Pode nao resolver o problema, mas não uses float! Passa tudo para double. What have you tried? Não respondo a dúvidas por PM A minha bola de cristal está para compor; deve ficar pronta para a semana. Torna os teus tópicos mais atractivos e legíveis usando a tag CODE para colorir o código!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now