Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Help in Understanding output (http://www.go4expert.com/forums/help-understanding-output-t21374/)

tejas.inamdar 16Mar2010 17:14

Help in Understanding output
 
Hi,

I have written a program to find out temperatures on a plate for a given set of conditions (This problem is a part of my course in Compuatational Fluid Dynamics).
The program runs giving output temperatures as


T18=3.47921e+310
T28=2.46768e+310
etc......
also
T57=1.#INF
T53=1.#INF
etc.......

Can anyone please tell me what the output means and probable errors in the program from looking at the output.
If needed I can post the program here...since it is more than 200 lines I have not posted it here..

Any help will be greatly appreciated
thanks

karthigayan 16Mar2010 17:28

Re: Help in Understanding output
 
I think you print the output using the '%g".Use "%f " and try .You will get a understandable output.

tejas.inamdar 17Mar2010 11:27

Re: Help in Understanding output
 
Thanks......
but isnt %d,%f etc... written in c language.

I have written the program in C++ (sorry i forgot to mention it in the earlier post)


All times are GMT +5.5. The time now is 12:39.