Exemple #1
0
 /// <summary>
 /// This performs the actual exponent operation.
 /// </summary>
 /// <returns>The result of an exponent of the two evaluated expressions.</returns>
 private decimal Exponent()
 {
     return((decimal)Math.Pow((double)LeftExpression.EvaluateExpression(), (double)RightExpression.EvaluateExpression()));
 }
Exemple #2
0
 /// <summary>
 /// This performs the actual division operation.
 /// </summary>
 /// <returns>The result of an division of the two evaluated expressions.</returns>
 private decimal Division()
 {
     return(LeftExpression.EvaluateExpression() / RightExpression.EvaluateExpression());
 }
Exemple #3
0
 /// <summary>
 /// This performs the actual subtraction operation.
 /// </summary>
 /// <returns>The result of an subtraction of the two evaluated expressions.</returns>
 private decimal Subtract()
 {
     return(LeftExpression.EvaluateExpression() - RightExpression.EvaluateExpression());
 }
Exemple #4
0
 /// <summary>
 /// This performs the actual multiplication operation.
 /// </summary>
 /// <returns>The result of an multiplication of the two evaluated expressions.</returns>
 private decimal Multiply()
 {
     return(LeftExpression.EvaluateExpression() * RightExpression.EvaluateExpression());
 }
Exemple #5
0
 /// <summary>
 /// This performs the actual addition operation.
 /// </summary>
 /// <returns>The result of an addition of the two evaluated expressions.</returns>
 private decimal Add()
 {
     return(LeftExpression.EvaluateExpression() + RightExpression.EvaluateExpression());
 }