Beispiel #1
0
 /// <summary>
 /// Method calculating sin value of simplified argument
 /// </summary>
 /// <returns>Sin value of argument</returns>
 public double Evaluate()
 {
     sim = new SimplifyArgument(argument.Evaluate());
     simplifiedArgument = sim.SimplifyOfTwoPi();
     Sin();
     return(result);
 }
Beispiel #2
0
 /// <summary>
 /// Calculate tan of simplified argument using the continued fraction
 /// </summary>
 /// <returns>tan value of argument or throw exception if case of wrong argument</returns>
 public double Evaluate()
 {
     sim = new SimplifyArgument(argument.Evaluate());
     simplifiedArgument = sim.SimplifyOfTwoPi();
     if (!BaseValue())
     {
         Tan();
     }
     return(result);
 }