Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

List of basic question.Please Help.
Hi all,
I have just started learning FORTRAN and these are the basic questions
I searched in the net for which I could not find any answers. Hope I
get answers here.
1)Why FORTRAN is considered as the language suitable for computations?
In my opinion all the languages can be used for computations(I am sure
I am wrong )?
2) what is the difference between the following array declarations?
LOGICAL*1    NAME(LENGTH)
LOGICAL      VALUE*1(MAXLEN)
3)Can I change the parameters of the function? If changed will the
change the actual parameters that are passed while calling also gets
changed?
4)What is the difference between the FORMAT codes F,G and E?All I know
is that they are used for real data's.

Thanks,

Report this thread to moderator Post Follow-up to this message
Old Post
prashna
12-29-04 08:58 AM


Re: List of basic question.Please Help.
prashna wrote:
>1)Why FORTRAN is considered as the language suitable for computations?
>In my opinion all the languages can be used for computations(I am sure
>I am wrong )?

Fortran was designed for FORmula TRANslation and has been used for that
since the late 1950s. There are compilers that produce efficient code
for all major computing platforms. The are free, fast, well-tested
libraries such as LAPACK at Netlib http://www.netlib.org and
comprehensive commercial libraries such as IMSL http://www.vni.com and
NAG http://www.nag.com . Complex numbers are one of basic types, and
the handling of arrays is good, especially since the 1990 standard.
Math functions like SIN and EXP are defined for single and double
precision real variables, complex variables, and often quadruple
precision reals. The language is simple enough that non-professional
programmers can quickly learn it.

Other languages are used for computational work. It's partly a matter
of taste.

2) what is the difference between the following array declarations?
LOGICAL*1    NAME(LENGTH)
LOGICAL      VALUE*1(MAXLEN)

>3)Can I change the parameters of the function? If changed will the
>change the actual parameters that are passed while calling also gets
>changed?

Yes and yes, but I recommend using a subroutine in this case.

I recommend that you learn Fortran 95, the latest version of Fortran
for which compilers are available. You can start with the free compiler
called g95 at http://www.g95.org . Fortran 95 compilers will in general
compile Fortran 77 code as well as Fortran 95 code. A good description
of various versions of Fortran is at
http://www.kcl.ac.uk/kis/support/ci...90home.html#1.0 .

A compiler for a Fortran 95 subset called F, designed for students but
also usable for serious work, is free at
http://www.fortran.com/F/index.html . It will not compile Fortran 77
code, but it can link to it.
Fortran tutorials are at
http://www.dmoz.org/Computers/Progr...tran/Tutorials/
.


Report this thread to moderator Post Follow-up to this message
Old Post
beliavsky@aol.com
12-29-04 08:58 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Fortran archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:03 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.