Skip to content

Commit 48731e3

Browse files
authored
add_try_dotnet (dotnet#6733)
1 parent 1a70ba1 commit 48731e3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

xml/System.Numerics/Complex.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@
265265
## Examples
266266
The following example calculates the absolute value of a complex number and demonstrates that it is equivalent to the value of the <xref:System.Numerics.Complex.Magnitude%2A> property.
267267
268-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.abs/cs/abs1.cs" id="Snippet1":::
268+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.abs/cs/abs1.cs" interactive="try-dotnet" id="Snippet1":::
269269
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.abs/vb/abs1.vb" id="Snippet1":::
270270
271271
]]></format>
@@ -353,7 +353,7 @@
353353
354354
The following example illustrates addition with complex numbers.
355355
356-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.add/cs/add1.cs" id="Snippet1":::
356+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.add/cs/add1.cs" interactive="try-dotnet" id="Snippet1":::
357357
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.add/vb/add1.vb" id="Snippet1":::
358358
]]></format>
359359
</remarks>
@@ -1169,7 +1169,7 @@ The addition of a complex number (a + bi) and a real number (which can be regard
11691169
## Examples
11701170
The following example illustrates the <xref:System.Numerics.Complex.Exp%2A> method. It shows that, with some allowance for the lack of precision of the <xref:System.Double> data type, passing the value returned by the <xref:System.Numerics.Complex.Log%2A> method to the <xref:System.Numerics.Complex.Exp%2A> method returns the original <xref:System.Numerics.Complex> value.
11711171
1172-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.log/cs/log1.cs" id="Snippet1":::
1172+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.log/cs/log1.cs" interactive="try-dotnet" id="Snippet1":::
11731173
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.log/vb/log1.vb" id="Snippet1":::
11741174
11751175
]]></format>
@@ -1231,7 +1231,7 @@ The addition of a complex number (a + bi) and a real number (which can be regard
12311231
## Examples
12321232
The following example uses the <xref:System.Numerics.Complex.FromPolarCoordinates%2A> method to instantiate a complex number based on its polar coordinates and then displays the value of its <xref:System.Numerics.Complex.Magnitude%2A> and <xref:System.Numerics.Complex.Phase%2A> properties.
12331233
1234-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.phase/cs/phase1.cs" id="Snippet1":::
1234+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.phase/cs/phase1.cs" interactive="try-dotnet" id="Snippet1":::
12351235
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.phase/vb/phase1.vb" id="Snippet1":::
12361236
12371237
]]></format>
@@ -1327,7 +1327,7 @@ The addition of a complex number (a + bi) and a real number (which can be regard
13271327
## Examples
13281328
The following example instantiates an array of <xref:System.Numerics.Complex> objects and displays the real and imaginary components of each in the form a + bi.
13291329
1330-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.real/cs/real1.cs" id="Snippet1":::
1330+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.real/cs/real1.cs" interactive="try-dotnet" id="Snippet1":::
13311331
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.real/vb/real1.vb" id="Snippet1":::
13321332
13331333
]]></format>
@@ -1731,7 +1731,7 @@ The addition of a complex number (a + bi) and a real number (which can be regard
17311731
## Examples
17321732
The following example calculates the absolute value of a complex number and demonstrates that it is equivalent to the value of the <xref:System.Numerics.Complex.Magnitude%2A> property.
17331733
1734-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.abs/cs/abs1.cs" id="Snippet1":::
1734+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.abs/cs/abs1.cs" interactive="try-dotnet" id="Snippet1":::
17351735
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.abs/vb/abs1.vb" id="Snippet1":::
17361736
17371737
]]></format>
@@ -1759,7 +1759,7 @@ The <xref:System.Numerics.Complex.Multiply%2A> method is implemented for languag
17591759
17601760
The following example multiples a complex number by each element in an array of complex numbers.
17611761
1762-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.multiply/cs/multiply1.cs" id="Snippet1":::
1762+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.multiply/cs/multiply1.cs" interactive="try-dotnet" id="Snippet1":::
17631763
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.multiply/vb/multiply1.vb" id="Snippet1":::
17641764
17651765
]]></format>
@@ -3680,7 +3680,7 @@ Languages that do not support custom operators can call the <xref:System.Numeric
36803680
## Examples
36813681
The following example uses the <xref:System.Numerics.Complex.FromPolarCoordinates%2A> method to instantiate a complex number based on its polar coordinates, and then displays the value of its <xref:System.Numerics.Complex.Magnitude%2A> and <xref:System.Numerics.Complex.Phase%2A> properties.
36823682
3683-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.phase/cs/phase1.cs" id="Snippet1":::
3683+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.phase/cs/phase1.cs" interactive="try-dotnet" id="Snippet1":::
36843684
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.phase/vb/phase1.vb" id="Snippet1":::
36853685
36863686
]]></format>
@@ -3750,7 +3750,7 @@ Languages that do not support custom operators can call the <xref:System.Numeric
37503750
## Examples
37513751
The following example illustrates exponentiation using a complex number and an exponent whose value ranges from -1 to 10.
37523752
3753-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.pow/cs/pow1.cs" id="Snippet1":::
3753+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.pow/cs/pow1.cs" interactive="try-dotnet" id="Snippet1":::
37543754
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.pow/vb/pow1.vb" id="Snippet1":::
37553755
37563756
]]></format>
@@ -3907,7 +3907,7 @@ Languages that do not support custom operators can call the <xref:System.Numeric
39073907
## Examples
39083908
The following example uses the <xref:System.Numerics.Complex.Reciprocal%2A> method to calculate the reciprocal values of several complex numbers. It also demonstrates that the result of multiplying a complex number by its reciprocal is <xref:System.Numerics.Complex.One?displayProperty=nameWithType>.
39093909
3910-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.reciprocal/cs/reciprocal1.cs" id="Snippet1":::
3910+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.reciprocal/cs/reciprocal1.cs" interactive="try-dotnet" id="Snippet1":::
39113911
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.reciprocal/vb/reciprocal1.vb" id="Snippet1":::
39123912
39133913
]]></format>

0 commit comments

Comments
 (0)