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