# Complex.ImaginaryOne 字段

## 定义

``public: static initonly System::Numerics::Complex ImaginaryOne;``
``public static readonly System.Numerics.Complex ImaginaryOne;``
`` staticval mutable ImaginaryOne : System.Numerics.Complex``
``Public Shared ReadOnly ImaginaryOne As Complex ``

## 示例

``````using System;
using System.Numerics;

public class Example
{
public static void Main()
{
Complex value = Complex.ImaginaryOne;
Console.WriteLine(value.ToString());

// Instantiate a complex number with real part 0 and imaginary part 1.
Complex value1 = new Complex(0, 1);
Console.WriteLine(value.Equals(value1));
}
}
// The example displays the following output:
//       (0, 1)
//       True
``````
``````Imports System.Numerics

Module Example
Public Sub Main()
Dim value As Complex = Complex.ImaginaryOne
Console.WriteLine(value.ToString())

' Instantiate a complex number with real part 0 and imaginary part 1.
Dim value1 As New Complex(0, 1)
Console.WriteLine(value.Equals(value1))
End Sub
End Module
' The example displays the following output:
'       (0, 1)
'       True
``````
{"ft_lang_label":"__label__en","ft_lang_prob":0.5131373,"math_prob":0.8675372,"size":1431,"snap":"2019-51-2020-05","text_gpt3_token_len":390,"char_repetition_ratio":0.17939733,"word_repetition_ratio":0.10869565,"special_character_ratio":0.21174005,"punctuation_ratio":0.16929133,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98429674,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-01-20T21:00:02Z\",\"WARC-Record-ID\":\"<urn:uuid:16080ea0-5204-46dd-ae9d-97e8cef7781d>\",\"Content-Length\":\"39656\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:3acc6e8f-c358-4be2-af33-fa1fe4798b30>\",\"WARC-Concurrent-To\":\"<urn:uuid:735f1747-3ebd-4eb8-b6bd-3e0669bb55e0>\",\"WARC-IP-Address\":\"104.108.100.37\",\"WARC-Target-URI\":\"https://docs.microsoft.com/zh-cn/dotnet/api/system.numerics.complex.imaginaryone?view=netframework-4.8\",\"WARC-Payload-Digest\":\"sha1:BSX5R2K4PI7NVH7N3FQ4LTYY7IGQBEGF\",\"WARC-Block-Digest\":\"sha1:5ETVBWG7R3UMMQNYDGZGYMCZYCQP5YZW\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-05/CC-MAIN-2020-05_segments_1579250599789.45_warc_CC-MAIN-20200120195035-20200120224035-00153.warc.gz\"}"}