[GOODIE] Complex numbers

Matej Kosik kosik at decef.elf.stuba.sk
Wed Oct 29 17:22:45 UTC 2003


Hi,

I have added a new package "Complex" (complex number support).

- It adds some new methods to the existing number classes in order they
  to be able to cooperate with complex number as one would expect.
- It defines new global variable `i' which refers to the imaginary unit.
  Global variables are bad manner but this one may convenient.

With this package it is possible to work with Complex number almost
exactly easily as it is with "native" kinds of numbers
(Integer, Fraction, Float).

Nothing complicated.
-- 
Matej Kosik <http://altair.dcs.elf.stuba.sk/wiki/Kosik/Main>



More information about the Squeak-dev mailing list