I have some code that uses an aquation like this:
E(T) = ( ( (C3 * T - C2) * T + C1) * T + C0) * T
The coefficients C0 - C3 are set in a data statement. It seems to work OK but what intrigues me is the 'E(T)' part. Outside of a Fortran context, there is no surprise: it's a equaton in (independent variable) T.
However, within the Fortan context, it raises my eyebrow,. When I first saw this, I expected E to be a one-dimentional array. Accordingly, E(T) would set the element 'T' to the value evaluated by the right-hand side of the equation.
But this is not the case at all. E is NOT an array! I've never seen anything like this nor do I see it addressed in any Fortran syntax guide.
Why wouldn't it just be:
E = ( ( (C3 * T - C2) * T + C1) * T + C0) * T
How can Fortran syntax interpret E(T) to be anything other than an array? Any thoughts are appreciated.