Is Fortran code available for NR3?


monir
10-05-2007, 08:40 AM
Hi;

Is the fortran (f90+) source code of these routines available with the NR 3rd Edition + Code ???

Thanks.
Monir

Bill Press
10-05-2007, 09:13 AM
Hi, monir.
I've moved your post to its own thread, since I think this question will come up for others.

There is no Fortran version of NR3 (3rd edition), nor any plan to make one. The parts of NR3 that are new make a lot of use of object-oriented features that would be difficult or impossible to do in Fortran.

Having said that, let me reassure you that we will continue to keep the NR2 (2nd edition, ver. 2.10) code available in both Fortran 77 and Fortran 90/2000. It is included on the NR3 CD, which you can buy either separately (http://www.amazon.com/exec/obidos/ISBN=0521706858/numericalrecipesA/) (ISBN 0521706858), or bundled with the book (http://www.amazon.com/exec/obidos/ISBN=0521884071/numericalrecipesA/) (ISBN 0521884071); or you can buy just the Fortran code as an electronic download (http://www.nr.com/com/storefront.html).

We feel very nostalgic about Fortran, and we are often accused of writing Fortran-like C++. (We don't think this is true, but that's another story!) But we think that Fortran is no longer a sufficiently versatile language for scientific computing. The best C++ compilers can now produce code that is as efficient as Fortran compilers. From hits on our web pages, we estimate that <10% of our readers are using Fortran.

monir
10-05-2007, 12:44 PM
Hi Bill;
Thank you for the clarification.

Having said that, let me reassure you that we will continue to keep the NR2 (2nd edition, ver. 2.10) code available in both Fortran 77 and Fortran 90/2000. It is included on the NR3 CD, which you can buy either separately (http://www.amazon.com/exec/obidos/ISBN=0521706858/numericalrecipesA/) (ISBN 0521706858), or bundled with the book (http://www.amazon.com/exec/obidos/ISBN=0521884071/numericalrecipesA/) (ISBN 0521884071); or you can buy just the Fortran code as an electronic download (http://www.nr.com/com/storefront.html).
So, the fortran source code of the routines in NR2 is also included on the NR3 CD. Correct ??

Are the following ISBNs the correct ref to the NR2 Fortran?
"Numerical Recipes in FORTRAN: The Art of Scientific Computing. 1992"
ISBN-10: 052143064X (Book)
ISBN-13: 978-0521430647 (Fortran CD)
ISBN-??? (bundled Fortran code CD+Book)

The copy I've is NR (1989?):
ISBN 0 521 38330 7 (Book)
ISBN 0 521 30958 1 (Fortran diskette)

Regards.
Monir

Bill Press
10-05-2007, 06:22 PM
Hello, monir.

So, the fortran source code of the routines in NR2 is also included on the NR3 CD. Correct ??
Yes! Both Fortran 77 and Fortran 90/2000.

Are the following ISBNs the correct ref to the NR2 Fortran?
"Numerical Recipes in FORTRAN: The Art of Scientific Computing. 1992"
ISBN-10: 052143064X (Book)
Yes! This is Fortran 77. Still in print.
The Fortran 90 second volume is ISBN-10: 0521574390, also still in print.

ISBN-13: 978-0521430647 (Fortran CD)
No. This is the ISBN-13 number of the Fortran 77 book above (the substring 43064 is CUP's item number). The 2nd edition CD that includes the Fortran code is ISBN-10: 0521576083. I think this is out of print, replaced by the 3rd edition (also includes 2nd edition) CD ISBN-10: 0521706858. I don't think there was ever an ISBN for a combined 2nd edition book and CD.

The copy I've is NR (1989?):
ISBN 0 521 38330 7 (Book)
ISBN 0 521 30958 1 (Fortran diskette)
Wow! I think your book is a late printing of the First Edition, long out of print. Your diskette is also from the First Edition. Maybe these are collectors' items ;).

monir
10-05-2007, 09:43 PM
Hi Bill;

Thank you kindly for the info.
I'll order the NR2 F90 Book:: ISBN-10: 052 157 4390
and the NR3 CD:: ISBN-10: 052 170 6858
since all routines' listings in the NR3 Book are likely in C++, which I've no experience in. I feel more comfortable in a fortran environment !!

Thanks again.
Monir