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()); }
public void InputSevenPiDivFour() { tanExp = new TangentExp(new Number(Constants.SevenPiDivFour)); dif = new Difference(-Constants.One, tanExp.Evaluate()); Assert.IsTrue(dif.IsAlmostSame()); }
public void InputPiDivTwo() { tanExp = new TangentExp(new Number(Constants.PiDivTwo)); tanExp.Evaluate(); }
public void InputPiDivSix() { tanExp = new TangentExp(new Number(Constants.PiDivSix)); dif = new Difference(Constants.SqrtThreeDivThree, tanExp.Evaluate()); Assert.IsTrue(dif.IsAlmostSame()); }
public void InputPi() { tanExp = new TangentExp(new Number(Constants.Pi)); dif = new Difference(Constants.Zero, tanExp.Evaluate()); Assert.IsTrue(dif.IsAlmostSame()); }