Chuyển đến nội phân
Trình Duyệt nào Không CNn Đan Hỗ trợ nữa.
Hãy nâng cấp lênn microsoft ed
Phương pháp phức tạp.Multiply
- Tài liệu tham khảo
Sự định nghĩa
Nhân một số được chỉ định với một số được chỉ định khác, trong đó ít nhất một trong số chúng là một số phức và số còn lại có thể là một số thực có độ chính xác kép.
Trong bài viết này
Quá tải
Ví dụ
Ví dụ sau đây bội số một số phức của mỗi phần tử trong một mảng các số phức.
using System;
using System.Numerics;
public class Example
{
public static void Main[]
{
Complex number1 = new Complex[8.3, 17.5];
Complex[] numbers = { new Complex[1.4, 6.3],
new Complex[-2.7, 1.8],
new Complex[3.1, -2.1] };
foreach [Complex number2 in numbers]
Console.WriteLine["{0} x {1} = {2}", number1, number2,
Complex.Multiply[number1, number2]];
}
}
// The example displays the following output:
// [8.3, 17.5] x [1.4, 6.3] = [-98.63, 76.79]
// [8.3, 17.5] x [-2.7, 1.8] = [-53.91, -32.31]
// [8.3, 17.5] x [3.1, -2.1] = [62.48, 36.82]
Imports System.Numerics
Module Example
Public Sub Main[]
Dim number1 As New Complex[8.3, 17.5]
Dim numbers[] As Complex = { New Complex[1.4, 6.3],
New Complex[-2.7, 1.8],
New Complex[3.1, -2.1] }
For Each number2 In numbers
Console.WriteLine["{0} x {1} = {2}", number1, number2,
Complex.Multiply[number1, number2]]
Next
End Sub
End Module
' The example displays the following output:
' [8.3, 17.5] x [1.4, 6.3] = [-98.63, 76.79]
' [8.3, 17.5] x [-2.7, 1.8] = [-53.91, -32.31]
' [8.3, 17.5] x [3.1, -2.1] = [62.48, 36.82]
Nhận xét
Các phương thức nhân cho phép thực hiện các hoạt động nhân liên quan đến các số phức.
Nếu phép nhân dẫn đến tràn trong thành phần thực hoặc tưởng tượng, giá trị của thành phần đó là double.PositiveInfinity hoặc double.NegativeInfinity.
Phương thức nhân được triển khai cho các ngôn ngữ không hỗ trợ các toán tử tùy chỉnh. Hành vi của nó giống hệt với phép nhân bằng toán tử nhân.
Nhân [gấp đôi, phức tạp]
Trả về sản phẩm của một số thực có độ chính xác kép và một số phức.
public:
static System::Numerics::Complex Multiply[double left, System::Numerics::Complex right];
public static System.Numerics.Complex Multiply [double left, System.Numerics.Complex right];
static member Multiply : double * System.Numerics.Complex -> System.Numerics.Complex
Public Shared Function Multiply [left As Double, right As Complex] As Complex
Thông số
trái đôi Double
Số thực có độ chính xác kép để nhân.
đúng phức tạp Complex
Số phức để nhân.
Trả lại
Tổ hợpSản phẩm của các tham số
Imports System.Numerics
Module Example
Public Sub Main[]
Dim number1 As New Complex[8.3, 17.5]
Dim numbers[] As Complex = { New Complex[1.4, 6.3],
New Complex[-2.7, 1.8],
New Complex[3.1, -2.1] }
For Each number2 In numbers
Console.WriteLine["{0} x {1} = {2}", number1, number2,
Complex.Multiply[number1, number2]]
Next
End Sub
End Module
' The example displays the following output:
' [8.3, 17.5] x [1.4, 6.3] = [-98.63, 76.79]
' [8.3, 17.5] x [-2.7, 1.8] = [-53.91, -32.31]
' [8.3, 17.5] x [3.1, -2.1] = [62.48, 36.82]
4 và Imports System.Numerics
Module Example
Public Sub Main[]
Dim number1 As New Complex[8.3, 17.5]
Dim numbers[] As Complex = { New Complex[1.4, 6.3],
New Complex[-2.7, 1.8],
New Complex[3.1, -2.1] }
For Each number2 In numbers
Console.WriteLine["{0} x {1} = {2}", number1, number2,
Complex.Multiply[number1, number2]]
Next
End Sub
End Module
' The example displays the following output:
' [8.3, 17.5] x [1.4, 6.3] = [-98.63, 76.79]
' [8.3, 17.5] x [-2.7, 1.8] = [-53.91, -32.31]
' [8.3, 17.5] x [3.1, -2.1] = [62.48, 36.82]
5.Nhận xét
Các phương thức nhân cho phép thực hiện các hoạt động nhân liên quan đến các số phức.
Nếu phép nhân dẫn đến tràn trong thành phần thực hoặc tưởng tượng, giá trị của thành phần đó là double.PositiveInfinity hoặc double.NegativeInfinity.
Phương thức nhân được triển khai cho các ngôn ngữ không hỗ trợ các toán tử tùy chỉnh. Hành vi của nó giống hệt với phép nhân bằng toán tử nhân.
- Nhân [gấp đôi, phức tạp]
Trả về sản phẩm của một số thực có độ chính xác kép và một số phức.
Thông số
trái đôi
public:
static System::Numerics::Complex Multiply[System::Numerics::Complex left, double right];
public static System.Numerics.Complex Multiply [System.Numerics.Complex left, double right];
static member Multiply : System.Numerics.Complex * double -> System.Numerics.Complex
Public Shared Function Multiply [left As Complex, right As Double] As Complex
Thông số
trái đôi Complex
Số phức để nhân.
Trả lại Double
Số thực có độ chính xác kép để nhân.
Trả lại
Tổ hợpSản phẩm của các tham số
Imports System.Numerics
Module Example
Public Sub Main[]
Dim number1 As New Complex[8.3, 17.5]
Dim numbers[] As Complex = { New Complex[1.4, 6.3],
New Complex[-2.7, 1.8],
New Complex[3.1, -2.1] }
For Each number2 In numbers
Console.WriteLine["{0} x {1} = {2}", number1, number2,
Complex.Multiply[number1, number2]]
Next
End Sub
End Module
' The example displays the following output:
' [8.3, 17.5] x [1.4, 6.3] = [-98.63, 76.79]
' [8.3, 17.5] x [-2.7, 1.8] = [-53.91, -32.31]
' [8.3, 17.5] x [3.1, -2.1] = [62.48, 36.82]
4 và Imports System.Numerics
Module Example
Public Sub Main[]
Dim number1 As New Complex[8.3, 17.5]
Dim numbers[] As Complex = { New Complex[1.4, 6.3],
New Complex[-2.7, 1.8],
New Complex[3.1, -2.1] }
For Each number2 In numbers
Console.WriteLine["{0} x {1} = {2}", number1, number2,
Complex.Multiply[number1, number2]]
Next
End Sub
End Module
' The example displays the following output:
' [8.3, 17.5] x [1.4, 6.3] = [-98.63, 76.79]
' [8.3, 17.5] x [-2.7, 1.8] = [-53.91, -32.31]
' [8.3, 17.5] x [3.1, -2.1] = [62.48, 36.82]
5.Nhận xét
Các phương thức nhân cho phép thực hiện các hoạt động nhân liên quan đến các số phức.
Nếu phép nhân dẫn đến tràn trong thành phần thực hoặc tưởng tượng, giá trị của thành phần đó là double.PositiveInfinity hoặc double.NegativeInfinity.
Phương thức nhân được triển khai cho các ngôn ngữ không hỗ trợ các toán tử tùy chỉnh. Hành vi của nó giống hệt với phép nhân bằng toán tử nhân.
- Nhân [gấp đôi, phức tạp]
Trả về sản phẩm của một số thực có độ chính xác kép và một số phức.
Thông số
trái đôi
Imports System.Numerics
Module Example
Public Sub Main[]
Dim number1 As New Complex[8.3, 17.5]
Dim numbers[] As Complex = { New Complex[1.4, 6.3],
New Complex[-2.7, 1.8],
New Complex[3.1, -2.1] }
For Each number2 In numbers
Console.WriteLine["{0} x {1} = {2}", number1, number2,
Complex.Multiply[number1, number2]]
Next
End Sub
End Module
' The example displays the following output:
' [8.3, 17.5] x [1.4, 6.3] = [-98.63, 76.79]
' [8.3, 17.5] x [-2.7, 1.8] = [-53.91, -32.31]
' [8.3, 17.5] x [3.1, -2.1] = [62.48, 36.82]
0Imports System.Numerics
Module Example
Public Sub Main[]
Dim number1 As New Complex[8.3, 17.5]
Dim numbers[] As Complex = { New Complex[1.4, 6.3],
New Complex[-2.7, 1.8],
New Complex[3.1, -2.1] }
For Each number2 In numbers
Console.WriteLine["{0} x {1} = {2}", number1, number2,
Complex.Multiply[number1, number2]]
Next
End Sub
End Module
' The example displays the following output:
' [8.3, 17.5] x [1.4, 6.3] = [-98.63, 76.79]
' [8.3, 17.5] x [-2.7, 1.8] = [-53.91, -32.31]
' [8.3, 17.5] x [3.1, -2.1] = [62.48, 36.82]
1Imports System.Numerics
Module Example
Public Sub Main[]
Dim number1 As New Complex[8.3, 17.5]
Dim numbers[] As Complex = { New Complex[1.4, 6.3],
New Complex[-2.7, 1.8],
New Complex[3.1, -2.1] }
For Each number2 In numbers
Console.WriteLine["{0} x {1} = {2}", number1, number2,
Complex.Multiply[number1, number2]]
Next
End Sub
End Module
' The example displays the following output:
' [8.3, 17.5] x [1.4, 6.3] = [-98.63, 76.79]
' [8.3, 17.5] x [-2.7, 1.8] = [-53.91, -32.31]
' [8.3, 17.5] x [3.1, -2.1] = [62.48, 36.82]
2Imports System.Numerics
Module Example
Public Sub Main[]
Dim number1 As New Complex[8.3, 17.5]
Dim numbers[] As Complex = { New Complex[1.4, 6.3],
New Complex[-2.7, 1.8],
New Complex[3.1, -2.1] }
For Each number2 In numbers
Console.WriteLine["{0} x {1} = {2}", number1, number2,
Complex.Multiply[number1, number2]]
Next
End Sub
End Module
' The example displays the following output:
' [8.3, 17.5] x [1.4, 6.3] = [-98.63, 76.79]
' [8.3, 17.5] x [-2.7, 1.8] = [-53.91, -32.31]
' [8.3, 17.5] x [3.1, -2.1] = [62.48, 36.82]
3Thông số
trái đôi Complex
Số thực có độ chính xác kép để nhân.
đúng phức tạp Complex
Số phức để nhân.
Trả lại
Tổ hợpSản phẩm của các tham số
Imports System.Numerics
Module Example
Public Sub Main[]
Dim number1 As New Complex[8.3, 17.5]
Dim numbers[] As Complex = { New Complex[1.4, 6.3],
New Complex[-2.7, 1.8],
New Complex[3.1, -2.1] }
For Each number2 In numbers
Console.WriteLine["{0} x {1} = {2}", number1, number2,
Complex.Multiply[number1, number2]]
Next
End Sub
End Module
' The example displays the following output:
' [8.3, 17.5] x [1.4, 6.3] = [-98.63, 76.79]
' [8.3, 17.5] x [-2.7, 1.8] = [-53.91, -32.31]
' [8.3, 17.5] x [3.1, -2.1] = [62.48, 36.82]
4 và Imports System.Numerics
Module Example
Public Sub Main[]
Dim number1 As New Complex[8.3, 17.5]
Dim numbers[] As Complex = { New Complex[1.4, 6.3],
New Complex[-2.7, 1.8],
New Complex[3.1, -2.1] }
For Each number2 In numbers
Console.WriteLine["{0} x {1} = {2}", number1, number2,
Complex.Multiply[number1, number2]]
Next
End Sub
End Module
' The example displays the following output:
' [8.3, 17.5] x [1.4, 6.3] = [-98.63, 76.79]
' [8.3, 17.5] x [-2.7, 1.8] = [-53.91, -32.31]
' [8.3, 17.5] x [3.1, -2.1] = [62.48, 36.82]
5.Nhận xét
Sự nhân của một số phức, A + BI và số phức thứ hai, C + DI, có dạng sau:
[AC - BD] + [AD + BC] I
Xem thêm
- Nhân [phức tạp, phức tạp]