Skip to content

Complex (class)

vmathmachine edited this page Jun 8, 2021 · 3 revisions

The Complex class is the main component of the Complex Number Library. It is a subclass of the class "Mafs", which in itself is a static subclass of java.lang.Object. It is a superclass of the static class "Cpx".

Each instance of Complex has two members, re and im (representing the real and imaginary parts). Both are of the primitive type "double" (double floating point).

The Complex class inherits functions from Mafs, such as str, which converts doubles to a string in a human readable format, as well as a variety of mathematical constants, such as HALFPI, e, inf, and Mascheroni.

Clone this wiki locally