getReal() - $invsqrt->getImaginary(), $complex->getImaginary() + $invsqrt->getReal() ); $log = ln($adjust); return new Complex( $log->getImaginary(), -1 * $log->getReal() ); }