public override string ToString() { string toOut = "f" + GV.OutputSampleInputVariables(inputVars, false) + " = " + coefficents[0].ToString() + coefficentVarNames[0].ToString(); //int digits = GV.GetNumberOfDigitsFromDifficulty(difficultyLevel); for (int i = 1; i < 4; ++i) { if (coefficents[i] != 0) { if (coefficents[i] > 0) { toOut += " + " + coefficents[i].ToString() + coefficentVarNames[i].ToString(); } else { toOut += " − " + Mathf.Abs(coefficents[i]) + coefficentVarNames[i].ToString(); } } } return(toOut); }