Skip to content

Commit c07e7e1

Browse files
authored
Merge pull request #5 from TaffarelJr/debug5
Added a power method
2 parents 765ad66 + b6e86cf commit c07e7e1

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/RJ.TestMe/Class1.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
using System;
2+
13
namespace RJ.TestMe
24
{
35
/// <summary>
@@ -62,5 +64,16 @@ public static double Divide(double a, double b)
6264
{
6365
return a / b;
6466
}
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+
}
6578
}
6679
}

0 commit comments

Comments
 (0)