toExponentialString method
Returns the exponential representation of the number.
Example: ā5.00 e^(0.93)iā. Use use2piRange to choose the argument.
Implementation
String toExponentialString({bool use2piRange = false, int? precision}) {
final p = precision ?? 2;
final angle = use2piRange ? theta2 : theta1;
return '${modulus.toStringAsFixed(p)} e^(${angle.toStringAsFixed(p)})i';
}