|
265 | 265 | ## Examples |
266 | 266 | 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. |
267 | 267 | |
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"::: |
269 | 269 | :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.abs/vb/abs1.vb" id="Snippet1"::: |
270 | 270 | |
271 | 271 | ]]></format> |
|
353 | 353 |
|
354 | 354 | The following example illustrates addition with complex numbers. |
355 | 355 | |
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"::: |
357 | 357 | :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.add/vb/add1.vb" id="Snippet1"::: |
358 | 358 | ]]></format> |
359 | 359 | </remarks> |
@@ -1169,7 +1169,7 @@ The addition of a complex number (a + bi) and a real number (which can be regard |
1169 | 1169 | ## Examples |
1170 | 1170 | 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. |
1171 | 1171 | |
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"::: |
1173 | 1173 | :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.log/vb/log1.vb" id="Snippet1"::: |
1174 | 1174 | |
1175 | 1175 | ]]></format> |
@@ -1231,7 +1231,7 @@ The addition of a complex number (a + bi) and a real number (which can be regard |
1231 | 1231 | ## Examples |
1232 | 1232 | 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. |
1233 | 1233 | |
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"::: |
1235 | 1235 | :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.phase/vb/phase1.vb" id="Snippet1"::: |
1236 | 1236 | |
1237 | 1237 | ]]></format> |
@@ -1327,7 +1327,7 @@ The addition of a complex number (a + bi) and a real number (which can be regard |
1327 | 1327 | ## Examples |
1328 | 1328 | 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. |
1329 | 1329 | |
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"::: |
1331 | 1331 | :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.real/vb/real1.vb" id="Snippet1"::: |
1332 | 1332 | |
1333 | 1333 | ]]></format> |
@@ -1731,7 +1731,7 @@ The addition of a complex number (a + bi) and a real number (which can be regard |
1731 | 1731 | ## Examples |
1732 | 1732 | 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. |
1733 | 1733 | |
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"::: |
1735 | 1735 | :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.abs/vb/abs1.vb" id="Snippet1"::: |
1736 | 1736 | |
1737 | 1737 | ]]></format> |
@@ -1759,7 +1759,7 @@ The <xref:System.Numerics.Complex.Multiply%2A> method is implemented for languag |
1759 | 1759 |
|
1760 | 1760 | The following example multiples a complex number by each element in an array of complex numbers. |
1761 | 1761 | |
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"::: |
1763 | 1763 | :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.multiply/vb/multiply1.vb" id="Snippet1"::: |
1764 | 1764 | |
1765 | 1765 | ]]></format> |
@@ -3680,7 +3680,7 @@ Languages that do not support custom operators can call the <xref:System.Numeric |
3680 | 3680 | ## Examples |
3681 | 3681 | 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. |
3682 | 3682 | |
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"::: |
3684 | 3684 | :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.phase/vb/phase1.vb" id="Snippet1"::: |
3685 | 3685 | |
3686 | 3686 | ]]></format> |
@@ -3750,7 +3750,7 @@ Languages that do not support custom operators can call the <xref:System.Numeric |
3750 | 3750 | ## Examples |
3751 | 3751 | The following example illustrates exponentiation using a complex number and an exponent whose value ranges from -1 to 10. |
3752 | 3752 | |
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"::: |
3754 | 3754 | :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.pow/vb/pow1.vb" id="Snippet1"::: |
3755 | 3755 | |
3756 | 3756 | ]]></format> |
@@ -3907,7 +3907,7 @@ Languages that do not support custom operators can call the <xref:System.Numeric |
3907 | 3907 | ## Examples |
3908 | 3908 | 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>. |
3909 | 3909 | |
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"::: |
3911 | 3911 | :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.reciprocal/vb/reciprocal1.vb" id="Snippet1"::: |
3912 | 3912 | |
3913 | 3913 | ]]></format> |
|
0 commit comments