getReal() == 0.0) && ($complex->getImaginary() == 0.0)) { throw new \InvalidArgumentException(); } elseif (($complex->getReal() > 0.0) && ($complex->getImaginary() == 0.0)) { return new Complex(\log10($complex->getReal()), 0.0, $complex->getSuffix()); } return ln($complex) ->multiply(\log10(Complex::EULER)); } }