Beispiel #1
0
 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]);
     }
 }
Beispiel #2
0
        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]);
            }
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
 public void SqrRootDoubleTest()
 {
     double c = SquareRoots.Root(i);
 }
Beispiel #5
0
 public void SqrRootIntTest()
 {
     dynamic c = SquareRoots.Root(h);
 }
Beispiel #6
0
 public dynamic Root(dynamic a)
 {
     result = SquareRoots.Root(a);
     return(result);
 }