public override bool Calculate() { bool leftResult = LeftSuccessor.Calculate(); bool rightResult = RightSuccessor.Calculate(); return(!(leftResult && rightResult)); }
public override bool Calculate() { if (LeftSuccessor.Calculate() == true && (RightSuccessor.Calculate() == false)) { return(false); } return(true); }
public override double Calculate(double x) { return(Math.Pow(LeftSuccessor.Calculate(x), RightSuccessor.Calculate(x))); }
public override double Calculate(double x) { return(LeftSuccessor.Calculate(x) * RightSuccessor.Calculate(x)); }
public override bool Calculate() { // Will be true if both left and right successor are true or false return(LeftSuccessor.Calculate() == RightSuccessor.Calculate()); }
public override bool Calculate() { return(LeftSuccessor.Calculate() && RightSuccessor.Calculate()); }