Re: Help needed



LordOfNoldor wrote:

Is there another way to calculate this without defining a function? By
using intrinsic functions perhaps?

Yes, you don't have to write a separate function, I just thought that made it more straightforward. Most everything that would be in the function can be inserted directly into the main do loop (you may or may not want to use a logical/flag the way I suggested).

--

Gary Scott
mailto:garylscott@sbcglobal dot net

Fortran Library: http://www.fortranlib.com

Support the Original G95 Project: http://www.g95.org
-OR-
Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html

Why are there two? God only knows.


If you want to do the impossible, don't hire an expert because he knows it can't be done.

-- Henry Ford
.



Relevant Pages

  • Re: The linf project
    ... language and to be honest with you, ... Support the Original G95 Project: http://www.g95.org ... Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html ...
    (comp.lang.fortran)
  • Re: The linf project (2)
    ... names for a single data type. ... Support the Original G95 Project: http://www.g95.org ... Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html ...
    (comp.lang.fortran)
  • Re: opening and reading wavefile
    ... > print *, numberbytes ... Fortran Library: http://www.fortranlib.com Support the Original G95 Project: http://www.g95.org -OR- ... Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html Why are there two? ... If electricity comes from electrons, ...
    (comp.lang.fortran)
  • Re: F95 standard
    ... xdvik, ghostscript, and a modern computer allows me to edit documents and ... If you need to run Windows rather than some flavour of UNIX. ... Support the Original G95 Project: http://www.g95.org ... Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html ...
    (comp.lang.fortran)
  • Re: better way to name optional argument
    ... Mike wrote: ... For an existent subroutine, I'd like to add an optional argument to do ... Support the Original G95 Project: http://www.g95.org ... Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html ...
    (comp.lang.fortran)