No but you can write an add operator so that you can use some funky notation like
a = b .plus. c
I haven't played with this feature a lot so I can't tell you whether you can have fancy looking operators like .+. or whether you can redefine + for arrays.
according to my textbook on Fortran you can perform operations on complete arrays, provided they are of the same size.
Even though I did not test them all, the following is correct:
real a(10),b(10),c(10),d
a = 0.0
b = 3.0
c = a + b
a = d * c
Lloydone,
I would recommend that you get yourself a copy of a good manual on Fortran. I use Stephen J. Chapman, Fortran 90/95 for Scientist and Engineers (McGraw-Hill series in general engineering).
(hopefully this is not thought to be advertising)
Even though it is adressed to engineers and scientists I found it quite comprehensible since most of the examples cover non-engineering problems. I guess that it would pay for you to spend those USD 40 (my guess, take a look in amazon for proper info) instead to have to wait for somebody to answer your forum question and delay your project each and every time you hit on some prob.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.