Javafastcomplex
Javafastcomplex has both mutable and immutable complex numbers
Javafastcomplex is a fast complex number package for Java. Most existing complex number packages implement only immutable complex numbers, which is easy to understand given that immutable objects lead to more understandable code. Mutable complex numbers would avoid garbage-collection penalty and therefore be faster in calculations. Javafastcomplex implements both mutable and immutable complex numbers, and has a common interface for both, allowing users to write functions that can take either a mutable or an immutable complex number as an argument. ...