O'Reilly logo

C# 5.0 Unleashed by Bart De Smet

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Complex Numbers

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 numbers in Figure 26.14, as well as a simple code fragment.

Image

FIGURE 26.14 Brief recap of complex number theory.

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 are typed using double floating-point precision values. Math-savvy readers will recall there’s another ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required