Source/Operations/BinaryOperations.cs
/// <summary>
/// Raises the left operand to the right operand power.
/// </summary>
/// <param name="leftOperand">The left operand</param>
/// <param name="rightOperand">The right operand</param>
/// <returns>The result of the operation</returns>
Raises the left operand to the right operand power.
Raises the left operand to the right operand power .
public static ExpressionResult Power(ExpressionResult leftOperand, ExpressionResult rightOperand)
		{
			return new ArithmeticExpressionResult(leftOperand, rightOperand)
			{
				Value = (decimal)Math.Pow((double)leftOperand.Value, (double)rightOperand.Value),
				TermType = $"{leftOperand.TermType}^{rightOperand.TermType}"
			};
		}
public static ExpressionResult Power ( ExpressionResult leftOperand , ExpressionResult rightOperand ) { return new ArithmeticExpressionResult ( leftOperand , rightOperand ) { Value = ( decimal ) Math . Pow ( ( double ) leftOperand . Value , ( double ) rightOperand . Value ) , TermType = $" { leftOperand . TermType } ^ { rightOperand . TermType } " } ; }
Raises the left operand to the right operand power.
Raises the left operand to the right operand power .
The result of the operation
The result of the operation
leftOperand
ExpressionResult
The left operand
The left operand
rightOperand
ExpressionResult
The right operand
The right operand