June 2003
Intermediate to advanced
800 pages
34h 20m
English
You need to perform calculations with complex numbers (numbers that involve i, the square root of –1).
Create your own complex number class.
The .NET Framework does not include any built-in support for complex number calculations. However, it’s quite easy to create a class to represent complex numbers. This class will include methods such as Add, Subtract, Multiply, and DivideBy, and a few complex-number helper functions such as GetModulus and GetConjugate. In addition, the class will support cloning and comparing (useful for sorting arrays of complex numbers), and it will override the Equals method to perform value equality testing and ToString to provide an appropriate string representation. ...
Read now
Unlock full access