示例#1
0
 /// <summary>
 /// Calculating the root of the nth power of a number using the standard method.
 /// </summary>
 /// <param name="number">Specified number</param>
 /// <param name="n">Degree of the root</param>
 /// <returns>number^(1/n)</returns>
 public static double CalcPowMethod(double number, int n)
 {
     return Math.Pow(number, (1.0d / n));
 }