Complex Numbers

image While the BCL teams were at it, adding System.Numerics with the BigInteger type, they also added a complex number struct. Because most readers won’t have to deal with complex numbers on a day-to-day basis, we restrict ourselves to a small refresher on the concept of complex number in Figure 26.14, as well as a simple code fragment.

Figure 26.14. Brief recap of complex number theory.

image

Creation of a Complex value can be done in a number of ways. One is to specify real and imaginary parts of the number to the constructor, both of which ...

Get C# 4.0 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.