public void RandomValues() { sineExp = new SineExp(new Number(-363.25334)); dif = new Difference((0.92129894706128631927), sineExp.Evaluate()); Assert.IsTrue(dif.IsAlmostSame()); sineExp = new SineExp(new Number(1.235)); dif = new Difference((0.94414820251856255790), sineExp.Evaluate()); Assert.IsTrue(dif.IsAlmostSame()); sineExp = new SineExp(new Number(1.7)); dif = new Difference((0.99166481045246861534), sineExp.Evaluate()); Assert.IsTrue(dif.IsAlmostSame()); sineExp = new SineExp(new Number(3.0)); dif = new Difference((0.14112000805986722210), sineExp.Evaluate()); Assert.IsTrue(dif.IsAlmostSame()); sineExp = new SineExp(new Number(25455.35221)); dif = new Difference((0.82661281223969933138), sineExp.Evaluate()); Assert.IsTrue(dif.IsAlmostSame()); }
public void InputSevenPiDivFour() { sineExp = new SineExp(new Number(Constants.SevenPiDivFour)); dif = new Difference(-Constants.SqrtTwoDivTwo, sineExp.Evaluate()); Assert.IsTrue(dif.IsAlmostSame()); }
public void InputPiDivTwo() { sineExp = new SineExp(new Number(Constants.PiDivTwo)); dif = new Difference(Constants.One, sineExp.Evaluate()); Assert.IsTrue(dif.IsAlmostSame()); }
public void InputFourPiDivSix() { sineExp = new SineExp(new Number(Constants.FourPiDivSix)); dif = new Difference(Constants.SqrtThreeDivTwo, sineExp.Evaluate()); Assert.IsTrue(dif.IsAlmostSame()); }
public void InputElevenPiDivSix() { sineExp = new SineExp(new Number(Constants.ElevenPiDivSix)); dif = new Difference(-Constants.OneDivTwo, sineExp.Evaluate()); Assert.IsTrue(dif.IsAlmostSame()); }