示例#1
0
        public void RandomValues()
        {
            tanExp = new TangentExp(new Number(-54352.35334));
            dif    = new Difference((0.35504229132005616478), tanExp.Evaluate());
            Assert.IsTrue(dif.IsAlmostSame());

            tanExp = new TangentExp(new Number(-542.543245222));
            dif    = new Difference((1.40515408328025900405), tanExp.Evaluate());
            Assert.IsTrue(dif.IsAlmostSame());

            tanExp = new TangentExp(new Number(0.654356));
            dif    = new Difference((0.76710065850574480764), tanExp.Evaluate());
            Assert.IsTrue(dif.IsAlmostSame());

            tanExp = new TangentExp(new Number(2.68432));
            dif    = new Difference((-0.49205651780050223079), tanExp.Evaluate());
            Assert.IsTrue(dif.IsAlmostSame());

            tanExp = new TangentExp(new Number(76543.765432123));
            dif    = new Difference((-2.17342646776547600425), tanExp.Evaluate());
            Assert.IsTrue(dif.IsAlmostSame());
        }
示例#2
0
 public void InputSevenPiDivFour()
 {
     tanExp = new TangentExp(new Number(Constants.SevenPiDivFour));
     dif    = new Difference(-Constants.One, tanExp.Evaluate());
     Assert.IsTrue(dif.IsAlmostSame());
 }
示例#3
0
 public void InputPiDivTwo()
 {
     tanExp = new TangentExp(new Number(Constants.PiDivTwo));
     tanExp.Evaluate();
 }
示例#4
0
 public void InputPiDivSix()
 {
     tanExp = new TangentExp(new Number(Constants.PiDivSix));
     dif    = new Difference(Constants.SqrtThreeDivThree, tanExp.Evaluate());
     Assert.IsTrue(dif.IsAlmostSame());
 }
示例#5
0
 public void InputPi()
 {
     tanExp = new TangentExp(new Number(Constants.Pi));
     dif    = new Difference(Constants.Zero, tanExp.Evaluate());
     Assert.IsTrue(dif.IsAlmostSame());
 }