本文整理匯總了VB.NET中System.Numerics.Complex.Pow方法的典型用法代碼示例。如果您正苦於以下問題:VB.NET Complex.Pow方法的具體用法?VB.NET Complex.Pow怎麽用?VB.NET Complex.Pow使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Numerics.Complex
的用法示例。
在下文中一共展示了Complex.Pow方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。
示例1: Example
' 導入命名空間
Imports System.Numerics
Module Example
Public Sub Main()
Dim value As New Complex(12, -6)
For power As Integer = -1 To 10
Console.WriteLine("{0} ^ {1,2} = {2:N2}", value, power,
Complex.Pow(value, power))
Next
End Sub
End Module
輸出:
(12, -6) ^ -1 = (0.07, 0.03) (12, -6) ^ 0 = (1.00, 0.00) (12, -6) ^ 1 = (12.00, -6.00) (12, -6) ^ 2 = (108.00, -144.00) (12, -6) ^ 3 = (432.00, -2,376.00) (12, -6) ^ 4 = (-9,072.00, -31,104.00) (12, -6) ^ 5 = (-295,488.00, -318,816.00) (12, -6) ^ 6 = (-5,458,752.00, -2,052,864.00) (12, -6) ^ 7 = (-77,822,208.00, 8,118,144.00) (12, -6) ^ 8 = (-885,157,632.00, 564,350,976.00) (12, -6) ^ 9 = (-7,235,785,728.00, 12,083,157,504.00) (12, -6) ^ 10 = (-14,330,483,712.00, 188,412,604,416.00)