Solving Gas Dynamics Equation with Secant Method - Troubleshooting Float Error

  • Thread starter Thread starter trish129
  • Start date Start date
  • Tags Tags
    Error
Click For Summary

Discussion Overview

The discussion revolves around troubleshooting a float error encountered while implementing the secant method to solve a gas dynamics equation in Fortran. Participants seek assistance in correcting the code and understanding the source of the error.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant reports a float error when executing their secant method code for a gas dynamics equation and requests help in identifying the issue.
  • Another participant describes a similar experience with a float error in their Fortran implementation of the secant method and seeks corrections to their code.
  • A third participant suggests that the issue may stem from incorrectly defining a function, indicating a potential misunderstanding in the code structure related to array assignments.
  • The third participant provides a link to additional resources on Fortran functions and subroutines, which may help clarify the coding issues.
  • One participant questions the coincidence of two users independently coding the same problem and submitting identical documents, implying a potential issue with originality or collaboration.

Areas of Agreement / Disagreement

Participants express individual challenges with similar float errors, but there is no consensus on the specific cause or solution to the problem. The discussion remains unresolved regarding the exact nature of the errors in the code.

Contextual Notes

Participants have not provided complete details on the definitions of variables or the full context of the equations being used, which may limit the ability to diagnose the errors accurately.

trish129
Messages
2
Reaction score
0
please help mee remove this error

i coded a secantt method ..the function was a gas dynamics equation.on executing it is giving me an error:float error...

i have attached both the question and the code..

thank u..
 

Attachments

Technology news on Phys.org
please help me correct this error in fortran

hey i coded secant method in fortran ...the equation was quite big and diffocult to put in..someow managed to do it..but on execution it is giving errors..please can you correct the mistake..thank you..would be a great learning for you...

heres the file containing the image of the equation and the fortran code..

erro:math erorr..floating error..

where am i wrong in the code
 

Attachments

Last edited by a moderator:


trish129 said:
i coded a secantt method ..the function was a gas dynamics equation.on executing it is giving me an error:float error...

i have attached both the question and the code..

thank u..

fahad20 said:
hey i coded secant method in fortran ...the equation was quite big and diffocult to put in..someow managed to do it..but on execution it is giving errors..please can you correct the mistake..thank you..would be a great learning for you...

heres the file containing the image of the equation and the fortran code..

erro:math erorr..floating error..

where am i wrong in the code

How is it that you both independently coded up this problem, and have exactly the same document?
 

Similar threads

Replies
5
Views
16K
Replies
4
Views
5K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 4 ·
Replies
4
Views
6K
Replies
5
Views
4K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 10 ·
Replies
10
Views
6K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 17 ·
Replies
17
Views
3K