1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Help in Understanding output

Discussion in 'C' started by tejas.inamdar, Mar 16, 2010.

  1. tejas.inamdar

    tejas.inamdar New Member

    Joined:
    Mar 16, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  2. karthigayan

    karthigayan New Member

    Joined:
    Feb 19, 2010
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    0
    I think you print the output using the '%g".Use "%f " and try .You will get a understandable output.
     
  3. tejas.inamdar

    tejas.inamdar New Member

    Joined:
    Mar 16, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    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)
     

Share This Page