/// <summary> /// Calculate the result of this equation /// terms that are valued are operated with its numeric value /// </summary> /// <param name="clean">true if calculate again</param> /// <returns>string representation number or algebraic</returns> public string Calculate(bool clean) { IArithmetic output = this.eq.Compute(); if (output.IsDouble()) { return(output.ToDouble().ToString()); } else { return(output.ToString()); } }