image
image

|


Go Back   macosx.com > Content & Information > Apple News, Rumors & Discussion

Reply
 
Thread Tools
  #1  
Old October 21st, 2001, 02:47 PM
Registered User
 
Join Date: Mar 2001
Location: Groton, CT, USA
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
chemistry_geek is on a distinguished road
Fortran for Mac OS?

Does anyone know if Fortran exists for the Mac OS? I don't care whether its for Mac OS 9 or Mac OS X. I'm working on a project for my masters thesis and a professor gave me a book with some fortran programs that will help me, BUT I need fortran to do it. I did a search with Sherlock and I found the 2nd edition of the book online. For anyone out there who might want this book (useful for programming), the entire book "Numerical Recipes, The Art of Scientific Computing, 2nd Edition" can be downloaded in PDF & PostScript format for FREE (yes, it's legal) at this address:

http://www.ulib.org/webRoot/Books/Numerical_Recipes/

According to the licence agreement, you are entitled to print ONE copy for yourself.

The book comes in 2 flavors: programs written in C, and programs written in Fortran77 and Fortran90. I downloaded them all (never know when something like this will be useful). The Fortran90 book is the 2nd volume in the series.

chemistry_geek
Reply With Quote
  #2  
Old October 21st, 2001, 04:25 PM
AdmiralAK's Avatar
Simply Daemonic
 
Join Date: Oct 2000
Location: Classified
Posts: 5,787
Thanks: 0
Thanked 0 Times in 0 Posts
AdmiralAK is on a distinguished road
ummm...is fortran still used ?
Seems like an arcaic language, (Yes I know it can do lots of math crunching)
__________________
<<------------------------------>>
Seid ihr bereit fuer Club Admiralty ????
Club Admiralty: Http://www.club-admiralty.com
Copyright 1996-present
Bonified Gadget Geek :-)
<<------------------------------>>
Reply With Quote
  #3  
Old October 21st, 2001, 04:42 PM
blb blb is offline
`'
 
Join Date: Apr 2001
Location: CO, USA
Posts: 651
Thanks: 0
Thanked 0 Times in 0 Posts
blb is on a distinguished road
Haven't used it myself, but another thread by gkhanna mentions he/she ported g77 to OS X.

And I guess it's a good thing I bought that book years ago, otherwise I might be upset at now getting it free...
Reply With Quote
  #4  
Old October 21st, 2001, 04:43 PM
Registered User
 
Join Date: Oct 2001
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
gkhanna is on a distinguished road
Smile g77 on OS X

Yes, FORTRAN is still very popular among scientists. Believe it or not
(at least in my experience) it is still incredibly fast compared to modern
programming languages.

Anyway .. I have g77 for Mac OS X off my website. You are welcome to
give it a try .. I also have other useful tools for science.

http://floyd.liunet.edu/~gkhanna/hpc.html
Reply With Quote
  #5  
Old October 21st, 2001, 08:10 PM
Registered User
 
Join Date: Mar 2001
Location: Groton, CT, USA
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
chemistry_geek is on a distinguished road
I would like to thank you all for replying to my post and helping me. I would like to especially thank gkhanna for the link allowing me to download fortran 77. I will certainly need some help getting it installed and running.

chemistry_geek
Reply With Quote
  #6  
Old October 21st, 2001, 08:32 PM
Registered User
 
Join Date: Oct 2001
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
squirell1357 is on a distinguished road
curious

I was wondering why you couldn'y use the book thazt comes in the c language flavor, since you could compile in osx natively with that language.
Reply With Quote
  #7  
Old October 21st, 2001, 09:10 PM
Registered User
 
Join Date: Mar 2001
Location: Groton, CT, USA
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
chemistry_geek is on a distinguished road
squirell1357,

I have a very limited knowledge of programming. I only know how to program in four languages: BASIC, HP48 LISP, MATLAB (which is supposed to be similar to FORTRAN), and WordPerfect 5.1 Macro language. Unfortunately, none of these are considered "mainstream".

My first computer was a Timex Sinclair 1000 with 2K of RAM, 8K of ROM. It used BASIC as the user programming language. My next computer was a Timex Sinclair 2068 with color!, 48K of RAM, and I think 32K of ROM (maybe had more). It was an Americanized version of the Sinclair Spectrum. My next computer was the very first and original Apple IIgs Woz Limited Edition. I still have all these computers, they all work, and they all use a version of BASIC.

Being a chemistry major, I was encouraged to take as many math classes as I could squeeze in my undergraduate education. My last class was a full year of Numerical Analysis in which I was taught to program in MATLAB. I learned more math in that class than all of my undergraduate math classes combined. MATLAB uses all of the "libraries" of FORTRAN, so numerically, MATLAB is KING of math programs for numerical computation. I don't think it does symbolic computations without hacks and add-ins. As far as accuaracy, MATLAB uses LINPACK (as does the Hewlett Packard HP48); it doesn't have round-off error in its answers/results. There's a reason MATLAB costs thousands of dollars. It runs on Macs, PC's, and mainframes.

All I know is that FORTRAN is used by many scientists through out the world, and looking through the book, the code looks an aweful lot like MATLAB which is what I understand.

All I need to do is smooth a few UV-vis spectra that were obtained near the instrument's detection limit, hence the data is jagged and noisy. I just want to smooth out the noise and I found a routine that uses the Fast Fourier Transform to remove the higher frequency noise. Hell, I might even be able to implement it in MATLAB or my HP48 if I can translate the code.

If anyone would like a nice calculator program for their Mac, get X48. The latest version can be found on Apple's Mac OS X download page under mathematics. It's also available on www.versiontracker.com as well as www.macosxapps.com. This is a fullblown HP48 emulator and it is really good. I would recommend any science major to purchase one from Hewlett Packard. It may not be as fast as the new Texas Instruments calculators, but it gives numerically more accurate answers and the programming language, HP LISP, is really quite powerful. There are some really neat programs for it at www.hpcalc.org.

chemistry_geek
Reply With Quote
  #8  
Old October 21st, 2001, 10:36 PM
Registered User
 
Join Date: Oct 2001
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
squirell1357 is on a distinguished road
code builder

thanks for the history ( i had a sinclair way back when)
tenon has barn burning prices on their unix development platform for classic. This package includes fortran development tools. (just in case you can't get g77 to compile properly)

http://www.tenon.com/products/codebuilder/

cheers
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Common fortran symbols and dynamic library pelicans Software Programming & Web Scripting 0 July 21st, 2003 06:50 AM
Communicating between perl and FORTRAN. simX Mac OS X System & Mac Software 4 July 29th, 2002 06:48 AM
fortran compiler for OSX Cunegonde Mac OS X System & Mac Software 2 November 14th, 2001 03:37 AM
Fortran on OS X MartinHa Mac OS X System & Mac Software 6 November 21st, 2000 03:25 PM


All times are GMT -5. The time now is 03:31 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.