Recent content by abdulsulo

  1. abdulsulo

    Fortran Taking 1/7 power of a variable

    Your hint gave me an idea and I think I solved the problem. I put 1./7. to the equation and problem solved. Didn't notice it would roll it down to 0. Thank you very much.
  2. abdulsulo

    Fortran Taking 1/7 power of a variable

    Do I=2,N,1 X1=(Yr(I)/R) X2=X1**(1/7) Ua(I)=Um*X2 END DO X1 and X2 are both double precision. I decided to divide the equation and take power but still it didn't work for me. On first iteration I am giving you the values of variables there; R=0.05 Um=2 Yr= 2.85E-05 Whatever I do it gives...
  3. abdulsulo

    Fortran Taking 1/7 power of a variable

    Hello there. I am trying to take a power of 1/7 of one variable but as a default it gives me 1 similar to if I was taking power of 0. How can I solve this problem. Thanks
  4. abdulsulo

    Fortran How to Handle Floating Point Errors in Fortran90 Real Number Calculations

    I am trying to make simple calculation of below; Vi= 6.586542 Vs=6.586000 The program finds a as 6.554608 from below equation. How is this possible? a=ABS(Vi-Vs) EDİT: I found my error. Thank you for your interest.
  5. abdulsulo

    Fortran How to Write a 2D Array to a .dat File in Fortran90?

    Yes it works inside my main program when I write it. But I want to write it outside my main code and use it as a function. So that I can send various arrays into this function and get the .dat files from each of them. NOT RELATED TO THİS TOPİC: By the way how can I add "," as a string in...
  6. abdulsulo

    Fortran How to Write a 2D Array to a .dat File in Fortran90?

    Now the problem is what I get as a result of my main program is VTARR(3001,2) named and dimensioned array. How can I write a subroutine or a function that sends the values inside this array into .dat file? Something similar to this but it won' t work as a separated subroutine or function...
  7. abdulsulo

    Fortran How to Write a 2D Array to a .dat File in Fortran90?

    But I find my value to be used inside subroutine at the end of the program. And it will be my variable in subroutine. By the way can I assign ubound(array) into integer variable? I tried it but it was a failure aswell. I am a VBA user and this language is a bit unusual for me.
  8. abdulsulo

    Fortran How to Write a 2D Array to a .dat File in Fortran90?

    Now I modified my code as it is below. But still I get the error: - A specification statement cannot appear in the executable section. program hw1 REAL G, Ks, DVIS, EPS,LENGTH,D,Vs,Re,Vi,V0,FFACT,DELt,I,Vi1,J INTEGER H, T, PHO real, dimension(3001,2):: VTARR G=9.81 D=0.3 H=8 ks=0.0001 T=60...
  9. abdulsulo

    Fortran How to Write a 2D Array to a .dat File in Fortran90?

    Oh yes Ofcourse. I get this error now: C:\Users\hasan.dalgic\Documents\Visual Studio 2012\Projects\Console2\Console2\hw1.f90(52): error #7978: Required interface for passing assumed shape array is missing from original source. [VTARR]
  10. abdulsulo

    Fortran How to Write a 2D Array to a .dat File in Fortran90?

    Hello everybody, I have a source code which gives me as a result an array of 2 columns and 3001 rows (2d array). By using fortran90. I was trying to have the values inside these cells into .dat file and tried to generate a subroutine and call my main array inside this. But somehow I get...
  11. abdulsulo

    Fortran How to Handle Floating Point Errors in Fortran90 Real Number Calculations

    Thank you all for kind insights. Now I got to read through articles that you linked and try to find solution to my problem.
  12. abdulsulo

    Fortran How to Handle Floating Point Errors in Fortran90 Real Number Calculations

    I read and tried to understand. But it seems there are no solutions for this? Am I wrong?
  13. abdulsulo

    Fortran How to Handle Floating Point Errors in Fortran90 Real Number Calculations

    Hello guys I am trying to write a code which is below; But my results seems to be fairly wrong. I noticed some of my real numbers are not what I assigned them. For example Ks shows on the watch window as 9.9999999E-5. How can I fix such situation? program hw1 REAL:: G,DVIS,Ks...
Back
Top