public void SqrRootDoubleArrayTest() { double[] x = { 1.2, 2.5, 6.2 }; double[] c = SquareRoots.Root(arrayE); for (int i = 0; i < c.Length; i++) { Assert.AreEqual(x[i], c[i]); } }
public void SqrRootArrayTest() { double[] x = { 1.41, 1.73, 2 }; double[] c = SquareRoots.Root(arrayF); for (int i = 0; i < c.Length; i++) { Assert.AreEqual(x[i], c[i]); } }
public static double StandardDeviation(double[] arrayA) { double theMean = StatMean.Mean(arrayA); int arrayCount_1 = arrayA.Length; double squareSum = 0.0; foreach (double a in arrayA) { double differences = Subtraction.Subtract(a, theMean); double squares = differences * differences; squareSum += squares; } double Result1 = Division.Quotient(squareSum, arrayCount_1); result = SquareRoots.Root(Result1); return(result); }
public void SqrRootDoubleTest() { double c = SquareRoots.Root(i); }
public void SqrRootIntTest() { dynamic c = SquareRoots.Root(h); }
public dynamic Root(dynamic a) { result = SquareRoots.Root(a); return(result); }