Create Complex structure using real and imaginary values.
Imports System.Numerics
Module Example
Public Sub Main()
Dim complex1 As New Complex(1.34, 2.87)
Dim Complex2 As New Complex(8.6, 5.9)
Console.WriteLine("{0} + {1} = {2}", complex1, complex2, complex1 + complex2)
Console.WriteLine("{0} - {1} = {2}", complex1, complex2, complex1 - complex2)
Console.WriteLine("{0} * {1} = {2}", complex1, complex2, complex1 * complex2)
Console.WriteLine("{0} / {1} = {2}", complex1, complex2, complex1 / complex2)
End Sub
End Module
Related examples in the same category