Updated routines to handle complex numbers with integer components.
commit25b67e68b349c3b36ccea6f71abd9be9ccf21959
authorThomas M. Hermann <tmh.public@gmail.com>
Thu, 30 Apr 2009 19:24:49 +0000 (30 14:24 -0500)
committerThomas M. Hermann <tmh.public@gmail.com>
Thu, 30 Apr 2009 19:24:49 +0000 (30 14:24 -0500)
tree3fdfd93836a4c42206701329e927dff6cb64afec
parente7c4faa8baf9d071972a66c62671001a62f3cc1c
Updated routines to handle complex numbers with integer components.

- Updated COMPLEX-EQUAL to compare integer components as well as
  floating point.

- Updated COMPLEX-RANDOM to properly handle integer components. In
  particular, ensure that the integer limit for the imaginary
  component is greater than 1. This is critical because if the
  components are rational and the imaginary part is zero, the complex
  number is converted to a rational. [CLHS 12.1.5.3]
floating-point.lisp