Javafastcomplex
Javafastcomplex has both mutable and immutable complex numbers
...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. Mutable complex numbers can then be used in the most performance-critical parts of the code with immutable complex numbers being used elsewhere. Performance improvement of mutable complex numbers is 10x in the best-case scenario and about 2x in real life complex number code. ...