O'Reilly logo
  • Philippe Derome thinks this is interesting:

ComplexNumber

From

Cover of Scala in Depth

Note

the product of complex numbers is wrong here as i*i is -1 and not +1 as suggested by the code.