Re: Question on complex algebra

From: glen herrmannsfeldt (gah_at_ugcs.caltech.edu)
Date: 04/27/04


Date: Tue, 27 Apr 2004 21:26:19 GMT

Dr Chaos wrote:

> AIMAG(Z) = 0.0

This was, unfortunately, discussed here before. PL/I uses
this form, and calls it a pseudo-variable. (Except that it
is IMAG instead of AIMAG.) There was a long discussion on
readability between the SUBSTR() form and Fortran substring
operations.

> does this interfere with statement functions?

It might. statement function definitions must be placed
early in the source file, but it could easily be confused.

PL/I doesn't have statement functions, and no user supplied
pseudo-variables, either.

It will probably be personal preference. The .r/.i form is
slightly more compact, and so probably slightly less hard to
read under some conditions.

-- glen