Exemplo n.º 1
0
Arquivo: Sqrt.cs Projeto: 65001/AbMath
 public static bool SqrtToFuncRunnable(RPN.Node node)
 {
     return(node.IsExponent() && node[0].IsNumber(2) && node[1].IsSqrt());
 }
Exemplo n.º 2
0
 public static bool setRule(RPN.Node node)
 {
     return(node.IsExponent());
 }
Exemplo n.º 3
0
 public static bool LnPowerRunnable(RPN.Node node)
 {
     return(node.IsExponent() && node[0].IsLn() && node[1].IsConstant("e"));
 }
Exemplo n.º 4
0
 public static bool setRule(RPN.Node node)
 {
     return(node.IsAddition() || node.IsSubtraction() || node.IsMultiplication() || node.IsExponent() ||
            node.IsDivision());
 }
Exemplo n.º 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]));
 }