Exemple #1
0
        public void Evaluate()
        {
            Quartic function = new Quartic();
            Vector  v1       = new Vector(new double[] { 0, 0, 0 });
            Vector  v2       = new Vector(new double[] { 2, 2, 2 });

            Assert.AreEqual(0, function.Evaluate(v1));
            Assert.AreEqual(96, function.Evaluate(v2));
        }