trish129
- 2
- 0
!C DEFINE FUNCTION F
F(M_20)=10-(6**(1/2))*(atan((((M_20)**2)-1)/6)**(1/2))-((atan((((m_1)**2)-1)/6)**(1/2)))+(atan((((M_20)**2)-
1)**(1/2))-(atan((((m_1)**2)-1)**(1/2))))
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