Пример #1
0
        public void RandomValues()
        {
            cosineExp = new CosineExp(new Number(-98525.254));
            dif       = new Difference((0.19474203566574637949), cosineExp.Evaluate());
            Assert.IsTrue(dif.IsAlmostSame());

            cosineExp = new CosineExp(new Number(0.25234));
            dif       = new Difference((0.96833084428709851447), cosineExp.Evaluate());
            Assert.IsTrue(dif.IsAlmostSame());

            cosineExp = new CosineExp(new Number(1.6374323));
            dif       = new Difference((-0.06658666961288881538), cosineExp.Evaluate());
            Assert.IsTrue(dif.IsAlmostSame());

            cosineExp = new CosineExp(new Number(7.26461));
            dif       = new Difference((0.55583877821731371201), cosineExp.Evaluate());
            Assert.IsTrue(dif.IsAlmostSame());

            cosineExp = new CosineExp(new Number(65436.5543565));
            dif       = new Difference((-0.94892830297897895851), cosineExp.Evaluate());
            Assert.IsTrue(dif.IsAlmostSame());
        }
Пример #2
0
 public void InputSevenPiDivFour()
 {
     cosineExp = new CosineExp(new Number(Constants.SevenPiDivFour));
     dif       = new Difference(Constants.SqrtTwoDivTwo, cosineExp.Evaluate());
     Assert.IsTrue(dif.IsAlmostSame());
 }
Пример #3
0
 public void InputPiDivTwo()
 {
     cosineExp = new CosineExp(new Number(Constants.PiDivTwo));
     dif       = new Difference((Constants.Zero), cosineExp.Evaluate());
     Assert.IsTrue(dif.IsAlmostSame());
 }
Пример #4
0
 public void InputPiDivSix()
 {
     cosineExp = new CosineExp(new Number(Constants.PiDivSix));
     dif       = new Difference(Constants.SqrtThreeDivTwo, cosineExp.Evaluate());
     Assert.IsTrue(dif.IsAlmostSame());
 }
Пример #5
0
 public void InputEightPiDivSix()
 {
     cosineExp = new CosineExp(new Number(Constants.EightPiDivSix));
     dif       = new Difference((-Constants.OneDivTwo), cosineExp.Evaluate());
     Assert.IsTrue(dif.IsAlmostSame());
 }