We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 765ad66 + b6e86cf commit c07e7e1Copy full SHA for c07e7e1
1 file changed
src/RJ.TestMe/Class1.cs
@@ -1,3 +1,5 @@
1
+using System;
2
+
3
namespace RJ.TestMe
4
{
5
/// <summary>
@@ -62,5 +64,16 @@ public static double Divide(double a, double b)
62
64
63
65
return a / b;
66
}
67
68
+ /// <summary>
69
+ /// Raises a to the power of b and returns the result.
70
+ /// </summary>
71
+ /// <param name="a">The base.</param>
72
+ /// <param name="b">The exponent.</param>
73
+ /// <returns>The result of a raised to the power of b.</returns>
74
+ public static double Power(double a, double b)
75
+ {
76
+ return Math.Pow(a, b);
77
+ }
78
79
0 commit comments