예제 #1
0
파일: Sqrt.cs 프로젝트: 65001/AbMath
 public static bool SqrtToFuncRunnable(RPN.Node node)
 {
     return(node.IsExponent() && node[0].IsNumber(2) && node[1].IsSqrt());
 }
예제 #2
0
 public static bool setRule(RPN.Node node)
 {
     return(node.IsExponent());
 }
예제 #3
0
 public static bool LnPowerRunnable(RPN.Node node)
 {
     return(node.IsExponent() && node[0].IsLn() && node[1].IsConstant("e"));
 }
예제 #4
0
 public static bool setRule(RPN.Node node)
 {
     return(node.IsAddition() || node.IsSubtraction() || node.IsMultiplication() || node.IsExponent() ||
            node.IsDivision());
 }
예제 #5
0
 public static bool LogPowerRunnable(RPN.Node node)
 {
     return(node.IsExponent() && node.Children[0].IsLog() && node.Children[0].Children[1].Matches(node.Children[1]));
 }