Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!tut.cis.ohio-state.edu!sei.cmu.edu!fs7.ece.cmu.edu!faraday.ECE.CMU.EDU!winstead From: winstead@faraday.ECE.CMU.EDU (Charles Holden Winstead) Newsgroups: comp.lang.fortran Subject: Basic Questions Message-ID: <1991Mar25.063607.7530@fs7.ece.cmu.edu> Date: 25 Mar 91 06:36:07 GMT Sender: news@fs7.ece.cmu.edu (USENET News System) Organization: Electrical and Computer Engineering, Carnegie Mellon Lines: 41 Hi everyone! I am a novice FORTRAN programmer, and these will probably be easy questions but so what, maybe someone else has some of the same. I program on a Sun Spark station, and would like to tell you the version number but I don't have access to the man pages. I apologize if these have been answered already. I'm not aware of a Freq.Asked.Ques for this group. Anyway, here are my questions, I appreciate any answers you may have. -Charles Winstead Carnegie Mellon 1. If I use write(*,*), and then redirect my output to a file when running, is there a way to write to the screen, say accessing standard error instead of standard output? 2. Are there function cosh, sinh, and conjugate for double complex? What are they? 3. Where do I get a list of all the intrinsic functions? As in the specific name differences for using a double precision one, or a double complex one. 4. Is there a way for a subroutine to know from which module it was called? i.e. was it called from line ## from main, or line # from subroutine foo? 5. What is a good FORTRAN book that tells me how to write efficient code, how fortran looks at data and pointers etc. I'd like a book that assumes that I know something about programming and want to be better. 6. If I divide a double complex by a double precision am I safe or should I somehow cast my dp variable as a dc one. Are there other pitfalls in mixing types? I know about mixed integer, but am not sure about double precision, float, complex, and double complex. 7. I just started using dbx. I've heard about toolbox. What is toolbox and what can it do? I tried downloading it, but it was too huge for my quota. Since I'm the only FORTRAN programmer around here, I'd need to be able to tell the administrator why I need 10 MEgs of space for toolbox before he'll do it. 8. Where do I get f2c, and a renumbering program?