|
609 | 609 |
|
610 | 610 | ## Examples
|
611 | 611 | The following example uses the <xref:System.Math.Acos%2A> method to assist in the computation of the inner angles of a given trapezoid.
|
612 |
| - |
613 |
| - [!code-cpp[MathSample#1](~/samples/snippets/cpp/VS_Snippets_CLR/MathSample/CPP/mathsample.cpp#1)] |
614 |
| - [!code-csharp[MathSample#1](~/samples/snippets/csharp/VS_Snippets_CLR/MathSample/CS/mathsample.cs#1)] |
615 |
| - [!code-vb[MathSample#1](~/samples/snippets/visualbasic/VS_Snippets_CLR/MathSample/VB/mathsample.vb#1)] |
| 612 | +
|
| 613 | + :::code language="cpp" source="~/samples/snippets/cpp/VS_Snippets_CLR/MathSample/CPP/mathsample.cpp" id="Snippet1"::: |
| 614 | + :::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR/MathSample/CS/mathsample.cs" interactive="try-dotnet" id="Snippet1"::: |
| 615 | + :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR/MathSample/VB/mathsample.vb" id="Snippet1"::: |
616 | 616 |
|
617 | 617 | ]]></format>
|
618 | 618 | </remarks>
|
|
730 | 730 |
|
731 | 731 | ## Examples
|
732 | 732 | The following example uses <xref:System.Math.Asin%2A> to assist in the computation of the inner angles of a given trapezoid.
|
733 |
| - |
734 |
| - [!code-cpp[MathSample#1](~/samples/snippets/cpp/VS_Snippets_CLR/MathSample/CPP/mathsample.cpp#1)] |
735 |
| - [!code-csharp[MathSample#1](~/samples/snippets/csharp/VS_Snippets_CLR/MathSample/CS/mathsample.cs#1)] |
736 |
| - [!code-vb[MathSample#1](~/samples/snippets/visualbasic/VS_Snippets_CLR/MathSample/VB/mathsample.vb#1)] |
| 733 | +
|
| 734 | + :::code language="cpp" source="~/samples/snippets/cpp/VS_Snippets_CLR/MathSample/CPP/mathsample.cpp" id="Snippet1"::: |
| 735 | + :::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR/MathSample/CS/mathsample.cs" interactive="try-dotnet" id="Snippet1"::: |
| 736 | + :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR/MathSample/VB/mathsample.vb" id="Snippet1"::: |
737 | 737 |
|
738 | 738 | ]]></format>
|
739 | 739 | </remarks>
|
|
1051 | 1051 |
|
1052 | 1052 | ## Examples
|
1053 | 1053 | The following example demonstrates the use of the <xref:System.Math.BigMul%2A> method to calculate the product of two integer values.
|
1054 |
| - |
1055 |
| - [!code-cpp[math.bigmul#1](~/samples/snippets/cpp/VS_Snippets_CLR/math.bigmul/CPP/bigmul.cpp#1)] |
1056 |
| - [!code-csharp[math.bigmul#1](~/samples/snippets/csharp/VS_Snippets_CLR/math.bigmul/CS/bigmul.cs#1)] |
1057 |
| - [!code-vb[math.bigmul#1](~/samples/snippets/visualbasic/VS_Snippets_CLR/math.bigmul/VB/bigmul.vb#1)] |
| 1054 | +
|
| 1055 | + :::code language="cpp" source="~/samples/snippets/cpp/VS_Snippets_CLR/math.bigmul/CPP/bigmul.cpp" id="Snippet1"::: |
| 1056 | + :::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR/math.bigmul/CS/bigmul.cs" interactive="try-dotnet" id="Snippet1"::: |
| 1057 | + :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR/math.bigmul/VB/bigmul.vb" id="Snippet1"::: |
1058 | 1058 |
|
1059 | 1059 | ]]></format>
|
1060 | 1060 | </remarks>
|
@@ -2115,9 +2115,9 @@ Dim i2 As Integer = CInt(Math.Ceiling(d2)) ' Result: 7969
|
2115 | 2115 | ## Examples
|
2116 | 2116 | The following example uses <xref:System.Math.Cosh%2A> to evaluate certain hyperbolic identities for selected values.
|
2117 | 2117 |
|
2118 |
| - [!code-cpp[System.Math.SinhCosh#1](~/samples/snippets/cpp/VS_Snippets_CLR_System/system.Math.SinhCosh/CPP/sinhcosh.cpp#1)] |
2119 |
| - [!code-csharp[System.Math.SinhCosh#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Math.SinhCosh/CS/sinhcosh.cs#1)] |
2120 |
| - [!code-vb[System.Math.SinhCosh#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Math.SinhCosh/VB/sinhcosh.vb#1)] |
| 2118 | + :::code language="cpp" source="~/samples/snippets/cpp/VS_Snippets_CLR_System/system.Math.SinhCosh/CPP/sinhcosh.cpp" id="Snippet1"::: |
| 2119 | + :::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Math.SinhCosh/CS/sinhcosh.cs" interactive="try-dotnet" id="Snippet1"::: |
| 2120 | + :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Math.SinhCosh/VB/sinhcosh.vb" id="Snippet1"::: |
2121 | 2121 |
|
2122 | 2122 | ]]></format>
|
2123 | 2123 | </remarks>
|
@@ -2320,10 +2320,10 @@ Dim i2 As Integer = CInt(Math.Ceiling(d2)) ' Result: 7969
|
2320 | 2320 |
|
2321 | 2321 | ## Examples
|
2322 | 2322 | The following example compares <xref:System.Math.E> with the value calculated from a power series.
|
2323 |
| - |
2324 |
| - [!code-cpp[System.Math.E#1](~/samples/snippets/cpp/VS_Snippets_CLR_System/system.Math.E/CPP/efield.cpp#1)] |
2325 |
| - [!code-csharp[System.Math.E#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Math.E/CS/efield.cs#1)] |
2326 |
| - [!code-vb[System.Math.E#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Math.E/VB/efield.vb#1)] |
| 2323 | +
|
| 2324 | + :::code language="cpp" source="~/samples/snippets/cpp/VS_Snippets_CLR_System/system.Math.E/CPP/efield.cpp" id="Snippet1"::: |
| 2325 | + :::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Math.E/CS/efield.cs" interactive="try-dotnet" id="Snippet1"::: |
| 2326 | + :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Math.E/VB/efield.vb" id="Snippet1"::: |
2327 | 2327 |
|
2328 | 2328 | ]]></format>
|
2329 | 2329 | </remarks>
|
@@ -2687,8 +2687,8 @@ Remainder = (Math.Abs(dividend) - (Math.Abs(divisor) *
|
2687 | 2687 | ## Examples
|
2688 | 2688 | The following example contrasts the remainder returned by the <xref:System.Math.IEEERemainder%2A> method with the remainder returned by the [remainder operator](~/docs/csharp/language-reference/operators/remainder-operator.md).
|
2689 | 2689 |
|
2690 |
| - [!code-csharp[System.Math.IEEERemainder#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.math.ieeeremainder/cs/ieeeremainder1.cs#1)] |
2691 |
| - [!code-vb[System.Math.IEEERemainder#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.math.ieeeremainder/vb/ieeeremainder1.vb#1)] |
| 2690 | + :::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.math.ieeeremainder/cs/ieeeremainder1.cs" interactive="try-dotnet" id="Snippet1"::: |
| 2691 | + :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.math.ieeeremainder/vb/ieeeremainder1.vb" id="Snippet1"::: |
2692 | 2692 |
|
2693 | 2693 | ]]></format>
|
2694 | 2694 | </remarks>
|
@@ -3060,9 +3060,9 @@ Remainder = (Math.Abs(dividend) - (Math.Abs(divisor) *
|
3060 | 3060 |
|
3061 | 3061 | ## Examples
|
3062 | 3062 | The following example uses the <xref:System.Math.Log10%2A> method to return the base 10 logarithm for selected values.
|
3063 |
| - |
3064 |
| - [!code-csharp[System.Math.Log10#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Math.Log10/CS/log10.cs#1)] |
3065 |
| - [!code-vb[System.Math.Log10#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Math.Log10/VB/log10.vb#1)] |
| 3063 | +
|
| 3064 | + :::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Math.Log10/CS/log10.cs" interactive="try-dotnet" id="Snippet1"::: |
| 3065 | + :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Math.Log10/VB/log10.vb" id="Snippet1"::: |
3066 | 3066 |
|
3067 | 3067 | ]]></format>
|
3068 | 3068 | </remarks>
|
@@ -6174,10 +6174,10 @@ The following example demonstrates how to use the <xref:System.Math.Round%28Syst
|
6174 | 6174 |
|
6175 | 6175 | ## Examples
|
6176 | 6176 | The following example uses <xref:System.Math.Sinh%2A> to evaluate certain hyperbolic identities for selected values.
|
6177 |
| - |
6178 |
| - [!code-cpp[System.Math.SinhCosh#1](~/samples/snippets/cpp/VS_Snippets_CLR_System/system.Math.SinhCosh/CPP/sinhcosh.cpp#1)] |
6179 |
| - [!code-csharp[System.Math.SinhCosh#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Math.SinhCosh/CS/sinhcosh.cs#1)] |
6180 |
| - [!code-vb[System.Math.SinhCosh#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Math.SinhCosh/VB/sinhcosh.vb#1)] |
| 6177 | +
|
| 6178 | + :::code language="cpp" source="~/samples/snippets/cpp/VS_Snippets_CLR_System/system.Math.SinhCosh/CPP/sinhcosh.cpp" id="Snippet1"::: |
| 6179 | + :::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Math.SinhCosh/CS/sinhcosh.cs" interactive="try-dotnet" id="Snippet1"::: |
| 6180 | + :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Math.SinhCosh/VB/sinhcosh.vb" id="Snippet1"::: |
6181 | 6181 |
|
6182 | 6182 | ]]></format>
|
6183 | 6183 | </remarks>
|
@@ -6319,10 +6319,10 @@ The following example demonstrates how to use the <xref:System.Math.Round%28Syst
|
6319 | 6319 |
|
6320 | 6320 | ## Examples
|
6321 | 6321 | The following example demonstrates how to calculate the tangent of an angle and display it to the console.
|
6322 |
| - |
6323 |
| - [!code-cpp[math.atanx#1](~/samples/snippets/cpp/VS_Snippets_CLR/math.atanx/CPP/atan.cpp#1)] |
6324 |
| - [!code-csharp[math.atanx#1](~/samples/snippets/csharp/VS_Snippets_CLR/math.atanx/CS/atan.cs#1)] |
6325 |
| - [!code-vb[math.atanx#1](~/samples/snippets/visualbasic/VS_Snippets_CLR/math.atanx/VB/atan.vb#1)] |
| 6322 | +
|
| 6323 | + :::code language="cpp" source="~/samples/snippets/cpp/VS_Snippets_CLR/math.atanx/CPP/atan.cpp" id="Snippet1"::: |
| 6324 | + :::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR/math.atanx/CS/atan.cs" interactive="try-dotnet" id="Snippet1"::: |
| 6325 | + :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR/math.atanx/VB/atan.vb" id="Snippet1"::: |
6326 | 6326 |
|
6327 | 6327 | ]]></format>
|
6328 | 6328 | </remarks>
|
@@ -6386,10 +6386,10 @@ The following example demonstrates how to use the <xref:System.Math.Round%28Syst
|
6386 | 6386 |
|
6387 | 6387 | ## Examples
|
6388 | 6388 | The following example uses <xref:System.Math.Tanh%2A> to evaluate certain hyperbolic tangent identities for selected values.
|
6389 |
| - |
6390 |
| - [!code-cpp[System.Math.Tanh#1](~/samples/snippets/cpp/VS_Snippets_CLR_System/system.Math.Tanh/CPP/tanh.cpp#1)] |
6391 |
| - [!code-csharp[System.Math.Tanh#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Math.Tanh/CS/tanh.cs#1)] |
6392 |
| - [!code-vb[System.Math.Tanh#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Math.Tanh/VB/tanh.vb#1)] |
| 6389 | +
|
| 6390 | + :::code language="cpp" source="~/samples/snippets/cpp/VS_Snippets_CLR_System/system.Math.Tanh/CPP/tanh.cpp" id="Snippet1"::: |
| 6391 | + :::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Math.Tanh/CS/tanh.cs" interactive="try-dotnet" id="Snippet1"::: |
| 6392 | + :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Math.Tanh/VB/tanh.vb" id="Snippet1"::: |
6393 | 6393 |
|
6394 | 6394 | ]]></format>
|
6395 | 6395 | </remarks>
|
|
0 commit comments