예제 #1
0
파일: Trig.cs 프로젝트: 65001/AbMath
 public static bool TrigIdentityCosToSinRunnable(RPN.Node node)
 {
     return(node.IsSubtraction() && node[0].IsExponent() && node[1].IsNumber(1) && node[0, 0].IsNumber(2) &&
            node[0, 1].IsFunction("cos"));
 }
예제 #2
0
 public static bool setRule(RPN.Node node)
 {
     return(node.IsAddition() || node.IsSubtraction() || node.IsMultiplication() || node.IsExponent() ||
            node.IsDivision());
 }
예제 #3
0
 public static bool LogSubtractionRunnable(RPN.Node node)
 {
     return(node.IsSubtraction() && node.Children[0].IsLog() &&
            node.Children[1].IsLog() &&
            node.Children[0].Children[1].Matches(node.Children[1].Children[1]));
 }
예제 #4
0
 public static bool LnSubtractionRunnable(RPN.Node node)
 {
     return(node.IsSubtraction() && node.Children[0].IsLn() && node.Children[1].IsLn());
 }
예제 #5
0
파일: Subtraction.cs 프로젝트: 65001/AbMath
 public static bool setRule(RPN.Node node)
 {
     return(node.IsSubtraction());
 }