log method
Implementation
Complex log() {
if (_modulus == 0.0) {
throw ArgumentError('Logarithm of zero is undefined.');
}
// log(r*e^(i*theta)) = log(r) + i*theta
return Complex(math.log(_modulus), _theta1);
}
Complex log() {
if (_modulus == 0.0) {
throw ArgumentError('Logarithm of zero is undefined.');
}
// log(r*e^(i*theta)) = log(r) + i*theta
return Complex(math.log(_modulus), _theta1);
}