junderwood
10-07-2002, 02:52 PM
In nrutil.h of the C version of NR there are a number of macro declarations of the type:
#define SQR(a) ((sqrarg=(a)) == 0.0 ? 0.0 : sqrarg*sqrarg)
which seem to declare unecessary variables - in this case sqrarg. I am wondering why this is so (I'm sure I'm missing something subtle).
jonathan.
#define SQR(a) ((sqrarg=(a)) == 0.0 ? 0.0 : sqrarg*sqrarg)
which seem to declare unecessary variables - in this case sqrarg. I am wondering why this is so (I'm sure I'm missing something subtle).
jonathan.