Example #1
0
        public void Max()
        {
            Complex      cd1 = new Complex(1.1, -2.2);
            Complex      cd2 = new Complex(0, -2.2);
            ComplexFloat cf1 = new ComplexFloat(1.1f, -2.2f);
            ComplexFloat cf2 = new ComplexFloat(0, -2.2f);

            Complex cdt = ComplexMath.Max(cd1, cd2);

            Assert.AreEqual(cd1, cdt);

            ComplexFloat cft = ComplexMath.Max(cf1, cf2);

            Assert.AreEqual(cf1, cft);
        }