[comp.sys.mac.programmer] complex.h in MPW 3.1

jess@gn.ecn.purdue.edu (Jess M Holle) (06/10/91)

Well, I just found that the error was not in the complex library, but rather
in my own code. I apologize for claiming the error to be in the complex
number routines, after having only checked my own code a few time (should
have been a few dozen, I guess). Anyway, the program (all dozen lines of it)
is now giving perfect results.

The error in question was:

  printf("%.*LG %.*LG\n",n,g.re,g.im);

Note that there should have been another n inserted between g.re and g.im.

Thanks to those that attempted to help me with this problem. I'll be more
careful with the "%.*" format in the future.

Jess Holle