diff --git a/LazyMathInstructor/Polynomial.cs b/LazyMathInstructor/Polynomial.cs index 1539a3d..ec2e747 100644 --- a/LazyMathInstructor/Polynomial.cs +++ b/LazyMathInstructor/Polynomial.cs @@ -276,7 +276,7 @@ public override bool Equals(object obj) /// public override string ToString() { - return string.Join(" + ", Coefficients.Select(x => (x.Value == 1 ? "" : x.Value) + return string.Join(" + ", Coefficients.Select(x => (x.Value == 1 && x.Key.Exponents.Any() ? "" : x.Value) + x.Key.ToString())); } }