Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ChadGarwick

    SQRT() function returning integer using gfortran mac osx SL

    mikrom, IMPLICIT NONE will be added to all of my programs. One of the biggest challenges when switching from C++ to Python was wrapping my head around dynamic typing. Since all of my scientific coding has switched to Python, I have learned to accept (and guiltily love) this feature of the...
  2. ChadGarwick

    SQRT() function returning integer using gfortran mac osx SL

    Mikrom, Thank you for the reply. That is indeed what was going on in my "Quadratic Equation" program (advanced stuff ehh?) I had an "IMGPRT" or imaginary part and "REALPT" or Real part. I will ensure that I declare variables before I use them from now on. Cheers
  3. ChadGarwick

    SQRT() function returning integer using gfortran mac osx SL

    Well, I solved my own problem. I have programmed in Python, and a little C++, for years. I never in all my days of programming had assumed that the first character in a variable name would have ANY bearing on the type of data it could hold. I was wrong! Apparently if the first character of...
  4. ChadGarwick

    SQRT() function returning integer using gfortran mac osx SL

    Thank you for taking the time to read this. I am currently going through the text "Classical FORTRAN" and I am having some difficulty understanding a bug. Reading through the text, I am led to believe the the SQRT() function should return a REAL if I pass it a REAL. When I compile this code...

Part and Inventory Search

Back
Top