/// <summary> /// Determines whether this equation can be plotted using the specific given variables. If calling this /// method with parameters <c>'x'</c> and <c>'y'</c> on an Equation such as <c>y=x+1</c> will return true, /// however calling it with the same parameters on an equation such as <c>a=3b-7</c> will return false, /// as the equation does not equate those two variables. /// </summary> /// <param name="variable1">A variable plotted on an axis of a Graph.</param> /// <param name="variable2">A variable plotted on an axis of a Graph.</param> /// <returns>Returns whether this plottable resource can be plotted over the given variables.</returns> public bool CanPlot(char variable1, char variable2) { if (ParseTree == null) { Parse(); } return(ParseTree.CanPlotOverVariables(variable1, variable2)); }