Why I use C instead of fortran
Jarkko Oikarinen
jto at tolsun.oulu.fi
Sun Jan 31 22:00:53 AEST 1988
(Just forwarding this message...)
In article <3597 at sdcc6.ucsd.EDU> (Tom Stockfish) writes:
/* Several lines deleted */
>In C you can write interactive programs
>in which you input complex commands which are then parsed and
>executed. In fortran you write programs which just prompt
>you to input x and y and then
>follow a fixed regimen. ...
Which command(s) FORTRAN is(are) missing that make interactive
programs impossibility?
For serious number-crunching I think FORTRAN is superior to C.
1) COMPLEX variables: Write complex arcus hyperbolic tangent in C!
2) single precision: all (ALL) real math is performed in double
precision in C. This takes time, especially if you have no
db floating point support. Transcendental functions require
far more (double) multiplications than single versions.
This is very advantageous in graphics where no great precision
and a lot of computation is required.
I agree the limitation of FORTRAN, which were supposed to be corrected
on ANSI FORTRAN 8X, but it never appeared(to my knowledge).
Jouko Holopainen
University of OULU (FINLAND)
dept. of electrical engineering
--
========================================
Jarkko Oikarinen ...!tut!oulu!jarkko
jarkko at tolsun.oulu.fi
========================================
More information about the Comp.lang.c
mailing list