toLatex method
Implementation
String toLatex() {
if (imaginary == 0) {
return real.toString();
}
return real.toString() + " + " + imaginary.toString() + "i";
}
String toLatex() {
if (imaginary == 0) {
return real.toString();
}
return real.toString() + " + " + imaginary.toString() + "i";
}