public Math_Node(List <Mouse_Data> Datas) { Operation = ' '; Root_Node = false; Value = 0; Build_Tree(String_Calc.ToFormula(Datas)); }
public string ToFormula() { switch (Label) { case "square root": return("(√" + String_Calc.Add_Front_End_Parenthese(String_Calc.ToFormula(AnyOther)) + ")"); case "divide": return(String_Calc.Add_Front_End_Parenthese(String_Calc.ToFormula(AnyOther)) + "/" + String_Calc.Add_Front_End_Parenthese(String_Calc.ToFormula(Denominator))); case "^": return("^" + String_Calc.Add_Front_End_Parenthese(String_Calc.ToFormula(AnyOther))); default: return("" + MainWindow.DataType[Label]); } }